Welcome Guest, Not a member yet? Register   Sign In
Generic Controller and link creation
#1

[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
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB