[eluser]bhefny[/eluser]
I'm new to codeigniter but I'm very familiar with PHP.
But i'm really struggling to build a good file structure using codeigniter.
My problem is that I really want o rely on the framework and standards since I can get the task done regardless.
now I'm building a new website from scratch. and I want to have "about us" & "contact us" pages. How can I make them (not How but more what is the standard in codeigniter):
1) Should I have one controller and it calls multiple view files (one view file for "about us") and another for "contact us"? [meaning the actual HTML details of the page like phone number and stuff will be in the view file]
2) should each have two file, the "about" should have it's controller file and it's view file and
"contact us" the same?
3) Should I have two controllers and in this controller I should prepare all my code (even if I used obstart() ) and both controllers call this one template view file? [meaning the actual HTML data like the phone number and divs will be in the control file and passed through a variable to the view for display]
all three cases can be done and it's not about the technicality, it's following the standard that will eventually help on the long run
Thank you.