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



anchor controller issue - El Forum - 06-09-2012

[eluser]Unknown[/eluser]
i am still a bit new to code ignitor but i managed to successfully use most functions i need of it.
now how ever i have a problem with in my anchor command.
Code:
<?php echo anchor('gallery/index', 'Gallery'); ?>
this piece of code is located in another controller 'welcome' and i want it to point at the Gallery controller by use of an anchor. this how ever does not work, i get an 404. once i replace the code with
Code:
<?php echo anchor('welcome/index', 'Gallery'); ?>
so that it uses the same controller it does load the view file but somehow the view file does not load the CSS that i use.

can someone help me, since i have no idea how to solve this problem myself.