CodeIgniter Forums
anchor - 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 (/showthread.php?tid=5139)



anchor - El Forum - 01-08-2008

[eluser]-spy-[/eluser]
hi everyone, im having a problem with this code

<?=anchor('profile/history','History');?>

what if i want to insert(id) tag... how can i do that..

to look like this

li><a href="http://localhost/pupcomm/profile/history" title="History" id = "historynav">History</a></li>

hope you can help me..tnx in advance


anchor - El Forum - 01-08-2008

[eluser]Dr.Dan[/eluser]
echo anchor('profile/history', 'History', array('id ' => 'historynav'));


anchor - El Forum - 01-08-2008

[eluser]Seppo[/eluser]
&lt;?=anchor('profile/history','History',array('title' => 'History', 'id' => 'historynav'));?&gt;


anchor - El Forum - 01-08-2008

[eluser]Derek Allard[/eluser]
no need to double post spy... I've merged these threads to keep them together.


anchor - El Forum - 01-08-2008

[eluser]-spy-[/eluser]
sorry for the double post! tnx for the help guys...n_n