Welcome Guest, Not a member yet? Register   Sign In
[solved] howto include anchor within normal $data-array
#4

[eluser]Majd Taby[/eluser]
UnrealMinds - the reason that doesn't work is because <?=anchor('foo','bar'); ?> is equivalent to <?php echo anchor('foo','bar'); ?>. So two things, first of all, when you're in php code (within <?php and ?&gtWink, you don't use those tags, anything inside them is interpreted as php code. Also, anchor() returns the html, so you don't want to echo it out in the controller, instead you want to assign it, that's why you don't see echo in mironcho's code.


Messages In This Thread
[solved] howto include anchor within normal $data-array - by El Forum - 11-03-2007, 07:35 AM
[solved] howto include anchor within normal $data-array - by El Forum - 11-03-2007, 09:38 AM
[solved] howto include anchor within normal $data-array - by El Forum - 11-03-2007, 10:16 AM
[solved] howto include anchor within normal $data-array - by El Forum - 11-03-2007, 11:40 AM
[solved] howto include anchor within normal $data-array - by El Forum - 11-03-2007, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB