do you create a new controller for every page that will be public or just have one controller called , for example, page then have all the pages loaded through methods.
which method is recommended and why?
I’m building a ecommerce/cms application and have created a controller named register where users register a new account and it has about 5 views that get displayed via the methods. All processing such as form validation and payment processing is being done within a model. As far as the controller goes do you see a long term problem with the method i have chosen?
The MVC architecture is letting you to divide portions with controllers and then divide low level parts of that portion with methods. The usual way for me is to first create an
Indexcontroller for my front-end and then separate different parts like users login, users registration, news part, even shopping part to methods. And it’s going to be like this: