You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dragoonis edited this page Feb 17, 2012
·
2 revisions
Controllers are not that difficult to implement.
We have a controller, it extends a base Controller class. Structurally controllers will be in.
Ext/Users/Controllers/Manage.php
The route for this will be: /users/manage
So the route here: /users/manage/create would be:
Ext/Users/Controllers/Manage->create().
Getting access to dependencies
We need to make our controller object part of a larger object, such as a ControllerContainer, or perhaps even the Extension.php main class could have a setController method. This means our dependencies can be set on the ControllerContainer and our controller can do $this->getService() on its container.