CodeIgniter Forums
typo in docs? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: typo in docs? (/showthread.php?tid=11231)



typo in docs? - El Forum - 08-31-2008

[eluser]mick_sp[/eluser]
Hi

I'm trying to use the html-helper img() function.
In the documentation it says:

Quote:Lets you create HTML <img /> tags. The first parameter contains the image source. There is data, the second the size of the heading. Example:....

I'm not sure what is meant with the blue bits, or is it a typo?
( can you tell english is not my native language ;-) )

BTW: i can't get it to work, is this function maybe broken in CI 1.5.2?
Code:
$image_properties = array(
          'src' => base_url().'resources/beeld/blank.gif',
          'alt' => 'bericht_plaatje',
          'width' => '20',
          'height' => '20',
          'title' => 'plaatje bij bericht'
                );
//    echo img(base_url().'resources/beeld/blank.gif');
as soon as i let the echo statement in there, the code breaks without an error message (i use E_ALL)

grtz
Michael