CodeIgniter Forums
anchor function does not render anything on the page - 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: anchor function does not render anything on the page (/showthread.php?tid=5644)



anchor function does not render anything on the page - El Forum - 01-29-2008

[eluser]zcorbitt[/eluser]
This is my first attempt at CI, but I am having difficulties with the url helper.

I have loaded the url helper in my controller, as instructed in the "Blog" video tutorial. However, when I try to use it in a view it does not render anything at all. The following is how I have it in the view:

anchor("invoice/notes/".$row->InvoiceID, "Notes")


anchor function does not render anything on the page - El Forum - 01-29-2008

[eluser]Craig A Rodway[/eluser]
have you tried it with echo?

Code:
echo anchor("invoice/notes/".$row->InvoiceID, "Notes");



anchor function does not render anything on the page - El Forum - 01-29-2008

[eluser]zcorbitt[/eluser]
thanks, I forgot the tutorial is using short tags...and I am not.