Hi,
After checking out a list of frameworks I think CodeIgniter is the framework I will use in future projects.
So I am new to CodeIgniter and the MVC way of application design, but have alot of experience in PHP and OOP. As a practice I am creating a simple website with a front and back-end. I am not sure the way I want to create it is the “smartest” and hope one of you can give me some advise.
The site contains pages without frames with 5 menu-items (Home/Text1/Text2/Contact/Members). For now I am planning to create 5 controllers. Because Text1/Text2 are actually the same (the text is read from the database) it feels wrong to have 2 different controllers for this. Should I use one controller and route both items?
The menu is on all pages the same. I want to create a Menumodel and load it in the constructor of each controller. Then parse the view into a menu-variable (so multi-views). Is this the way or is there a better one.
Because the pages all contain the same constructor (where the menu is loaded and other cosmetic stuff is handled) isn’t it better to create an Controller-class and let all controllers used in the application be extensions of this class. Or is this not the way it should be done in MVC? If so, does this class also belong in the controller-directory?
As you probably noticed in my post, I am a bit confused about this.
Thanks in advanced for your reaction!
