From a0905f33eabec71e411c837967750e15d6febf19 Mon Sep 17 00:00:00 2001
From: Derek Allard
There is an optional second parameter that is a TRUE/FALSE value that specifics if the src should have the page specified by $config['index_page'] added to the address it creates. Presumably, this would be if you were using a media controller.
echo img('images/picture.jpg', TRUE);
-// gives <img src="http://site.com/index.php/images/picture.jpg" />
Additionally, an associative array can be passed to the img() function for complete control over all attributes and values.
+// gives <img src="http://site.com/index.php/images/picture.jpg" alt="" /> +Additionally, an associative array can be passed to the img() function for complete control over all attributes and values. If an alt attribute is not provided, CodeIgniter will generate an empty string.
$image_properties = array(
'src' => 'images/picture.jpg',
'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time',
--
cgit v1.2.3-24-g4f1b