-
Notifications
You must be signed in to change notification settings - Fork 30
PPI v2 Ext Controllers
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().
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.