Zend: Separate default controller for default module vs custom module? -
After
What I'm trying to get is the default controller for news
controller My default module for using, and my index
controller for my admin module
As of now , because my admin bootstrap is being applied, the default controller name for my default module is now index instead of news (I want the latter ). The administrator itself is fine how can I edit my settings to get what I need like this
My application.ini settings:
bootstrap.path = APPLICATION_PATH "/bootstrap.php" bootstrap.class = "bootstrap" resources.modules [] = '' resources.frontController.defaultControllerName = "news" resources.frontController.defaultModule = "default" resources.frontController.defaultAction = "index" resources. FrontController.controllerDirectory = APPLICATION_PATH "/ controller" resources.frontController.moduleDirectory = APPLICATION_PATH "/ module" resources.frontController.moduleControllerDirectoryName = "controller" resources.view [] = 'admin.resources.frontController .defaultControllerName = Index resources.layout.layoutPath = APPLICATION_PATH "/ layout / scripts"
I just used the modules / admin with vanilla structure (I name the IndexController class name The change was to be the Admin_IndexController and I had to create a bootstrap in the / admin module) in order to be the controller index for the default of admin module and not to be reported.
An easy fix for an indexController and action forword is newsController.
But do you want to go ahead and control the Dispatcher subclasses, depending on the different default modules the controller would want to go back, then
Comments
Post a Comment