tex*_*xai 4 zend-framework zend-framework-modules
在我的zf应用程序中,我有3个模块:
而且,在我的application.ini中,我选择了一个默认模块
resources.frontController.defaultModule = "applicant"
Run Code Online (Sandbox Code Playgroud)
因此,一些控制器类的命名如下:
class IndexController extends Zend_Controller_Action /* in Applicant Module */
class Company_IndexController extends Zend_Controller_Action
class Admin_IndexController extends Zend_Controller_Action
Run Code Online (Sandbox Code Playgroud)
由于申请人是我的默认模块,因此我不需要在课程名称中使用模块名称作为前缀.
如何使用前缀方式在默认模块中命名类?
我想使用这些类名
class Applicant_IndexController extends Zend_Controller_Action
class Company_IndexController extends Zend_Controller_Action
class Admin_IndexController extends Zend_Controller_Action
Run Code Online (Sandbox Code Playgroud)
但我收到这个错误:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in ZendFramework-1.11.6/library/Zend/Controller/Dispatcher/Standard.php on line 248
Run Code Online (Sandbox Code Playgroud)