Reputation:
I'm developing a product review website with CodeIgniter, but I'm having some trouble splitting the controllers.
This is what I've already done:
Categories - Categories, subcategories... Main - Only the home page Products - Only the product page Users - Login, Register, Account... Reviews - Only the page to submit the review
Is this "right"?
Where should I place pages like contact, about, help...
Upvotes: 1
Views: 389
Reputation: 4565
This is a topic that many have strong opinions on as organization is very subjective, especially in programming.
However, for me, I generally organize my controllers according to the main type of data they access or main type of role they will perform.
In respect to types of data, you might have:
And in respect to roles performed, you might have:
Upvotes: 1