diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2012-07-28 20:57:04 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2012-07-28 20:57:04 +0200 |
commit | 62ab8b24fc37a25eab9205c46321fa41729e5faf (patch) | |
tree | 5afb35e82120a141fcaac6294d93783da38a8289 /application/controllers/welcome.php | |
parent | d83e727d6deedded5b637e685accb4fac0dc3985 (diff) |
Adding optional attributes as array or object for html helper
Diffstat (limited to 'application/controllers/welcome.php')
-rw-r--r-- | application/controllers/welcome.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 1ed82d2a7..9aaab14ad 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -44,7 +44,10 @@ class Welcome extends CI_Controller { */ public function index() { - $this->load->view('welcome_message'); + $this->load->helper('html'); + echo img('test.png', FALSE, array('class' => 'foo')); + + // $this->load->view('welcome_message'); } } |