CodeIgniter Forums
how to create a link to a controller? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: how to create a link to a controller? (/thread-45691.html)



how to create a link to a controller? - El Forum - 10-01-2011

[eluser]Unknown[/eluser]
So I've just started using codeigniter again after about a 2 year break. I'm having a real problem with creating a link to a different controller. In essence, my home page loads fine. When I create a link to a new controller I am either getting a 404 error or a 403 error.

<a href='&lt;?=base_url()?&gt;controllers/news'>

any suggestions?

thanks,

alan