CodeIgniter Forums
[SOLVED]first URI segment doesn't change after link with second URI segment - 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: [SOLVED]first URI segment doesn't change after link with second URI segment (/showthread.php?tid=41001)

Pages: 1 2


[SOLVED]first URI segment doesn't change after link with second URI segment - El Forum - 04-27-2011

[eluser]danmontgomery[/eluser]
Code:
<?php echo anchor('home','Home'); ?>



[SOLVED]first URI segment doesn't change after link with second URI segment - El Forum - 04-27-2011

[eluser]reaper_unique[/eluser]
Thank you both for your comments.

I know those work very well, but as stated above, I'd like to keep php to a minimum in my views. That is why I decided to do it as followed, which solves my problem:

Code:
<a href="../home">Home</a>

If in the end the methods you two mentioned are better in the long run, Meaning, if I keep having troubles because I use "../", I will use php. That way I'll learn it the hard way but I'll have learned it for good. Smile


[SOLVED]first URI segment doesn't change after link with second URI segment - El Forum - 06-07-2011

[eluser]Julian[/eluser]
Hello, good post, please visit my post and see how you can become a millionaire in the forex. [URL="http://millionaireinforex.com"]Become a Millionaire in Forex[/URL]