[eluser]CMCDragonkai[/eluser]
Hello,
I just need some clarification on this problem:
I understand controllers can be considered the pages in a website that people access. But a controller can have multiple methods.
My previous idea for constructing a new site, is for an "area" to be a class, and the class's methods would be individual pages but these pages are closely linked in style since they are in the same "area".
However, from the tutorials I have done, each method in a class essentially performs some task, but the page itself (that is determined from the class) remains the same.
Therefore, does that mean I will need a controller corresponding for every single page, a website might have. Like "about", "search", "products"... etc.
Furthermore, if one page has multiple functions such as a search page, you may have different options in the search form, then these should be handled like methods in the search class.
How do the pros set out their pages?
Thanks for any help.