Another controller

Permalink 1 user found helpful
When we extend the dashboard by adding new single pages, would it be possible to have several controllers which deal with the new functionality ?
Or are we limited to one and only one ?

Thanks

 
JohntheFish replied on at Permalink Reply
JohntheFish
When your single page view links back to a controller action, the action subpath can be a method in the single page controller or a subpath for another controller file beneath the single page controller (or a parameter of the default controller view() method).

You can also have multiple views, perhaps one for each state that a page passes through, but you need to do a little bit of redirecting for that.

Or you could structure it as one view and one controller, with an element for each page state, and passing complex stuff in the controller off to libraries or models.