CodeIgniter Forums
Generic Controller and link creation - 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: Generic Controller and link creation (/showthread.php?tid=56127)



Generic Controller and link creation - El Forum - 11-28-2012

[eluser]Unknown[/eluser]
Hi, I am starting with CodeIgniter. I used to design everything from nothing or use CMS like wordpress, and I have decided to start with CI. I have a couple of questions:

1- For trial purposes, I would like to create a mini-site of 4 pages (index included), with a generic controller for all of them. But I don't know how to do. I managed to create the index controller, with a view, and everything is working. But now I am trying to re-use this stuff for the 3 others pages. How to do it in CI?

2- How to create links in CI?

Regards

Eric


Generic Controller and link creation - El Forum - 11-28-2012

[eluser]Aken[/eluser]
1) Use routes.

2) Could you be more specific? Create HTML anchor links, or something else?