summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2012-07-28 20:57:04 +0200
committerEric Barnes <eric@ericlbarnes.com>2012-07-28 20:57:04 +0200
commit62ab8b24fc37a25eab9205c46321fa41729e5faf (patch)
tree5afb35e82120a141fcaac6294d93783da38a8289 /application
parentd83e727d6deedded5b637e685accb4fac0dc3985 (diff)
Adding optional attributes as array or object for html helper
Diffstat (limited to 'application')
-rw-r--r--application/controllers/welcome.php5
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');
}
}