Here I would like to have a tree of controllers different from that offered by Zend. Let me explain, in many of my projects I find myself with controllers with over 1000 lines of code which is not very top side of code maintainability. So I want to cut my controllers, ie.
Example current controller:
UserController class extends Zend_Controller_Action {
listAction public function () {}
editAction public function () {}
.......
groupListAction public function () {}
groupEditAction public function () {}
.......
roleListAction public function () {}
roleEditAction public function () {}
.... etc.
}
So in this example I will like to outsource the concept of groups and roles in other controllers and other issues.
Desired architecture:
- controllers /
- UserController.php
- User /
--- GroupController.php
--- RoleController.php
-> url:
http://www.site.com/user/ -> class UserController
http://www.site.com/user_group/ -> class User_GroupController
http://www.site.com/user_role/ -> class User_RoleController
So I do not know how to apply this type of cutting.
If someone with an idea I'm interested. Thank you in advance.
thank you for your reply but i find the solution just by create custum routes. ie.