if you use zend framework and just go to http://localhost, the site will call the index action of index controller.....is there a way to configure zend such that it will call some other controller when you access the index site?
setDefaultAction: base name of the default action (normally "index")
setDefaultModule: base name of the default module (normally "default")
or, when using Zend_Application_Resource_FrontController, you can set the desired values in your application.ini and they get applied automatically during bootstrap.
发布评论
评论(2)
设置所需的值
或者使用
Zend_Application_Resource_FrontController
,您可以设置所需的application.ini 中的值,它们会在引导期间自动应用。Either set the desired values through the FrontController's API
or, when using
Zend_Application_Resource_FrontController
, you can set the desired values in your application.ini and they get applied automatically during bootstrap.使用 Zend_Controller_Front:
Use Zend_Controller_Front: