Welcome Guest, Not a member yet? Register   Sign In
CI 1.6's new image tag helper and linking
#2

[eluser]Isern Palaus[/eluser]
You need to pass something on the third "position" (sorry my English...). Like:

Code:
<?php
     anchor("welcome","<img src=\"".base_url()."img/test.png\" width=\"16px\" height=\"16px\" />","alt=\"This will work, i think\");
?&gt;

With simple quotes is more easy to understand:
Code:
&lt;?php
     anchor('welcome','<img src="'.base_url().'img/test.png width="16px" height="16px" />','alt="This will work, i think"');
?&gt;

Regards,
-- Isern Palaus


Messages In This Thread
CI 1.6's new image tag helper and linking - by El Forum - 02-16-2008, 06:52 AM
CI 1.6's new image tag helper and linking - by El Forum - 02-16-2008, 07:18 AM
CI 1.6's new image tag helper and linking - by El Forum - 02-16-2008, 07:27 AM
CI 1.6's new image tag helper and linking - by El Forum - 02-16-2008, 07:30 AM
CI 1.6's new image tag helper and linking - by El Forum - 02-16-2008, 07:33 AM
CI 1.6's new image tag helper and linking - by El Forum - 02-16-2008, 07:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB