I configured the "application.ini", let the zend framework supported Multi modules.
the config like this : first, delete resources.frontController.controllerDirectory= APPLICATION_PATH "/controllers" and then add resources.FrontController.moduleDirectory = APPLICATION_PATH "/test/" resources.FrontController.moduleControllerDirectoryName = "controllers" resources.FrontController.defaultModule = "default" resources.modules[] ="default" I run the page(url like http://127.0.0.1/test/public/index.php) , and the page run to normal. now , I want to create the static html and configured the "application.ini" like this: resources.cachemanager.page.backend.options.public_dir = APPLICATION_PATH "/../public/html/" resources.cachemanager.pagetag.backend.options.tag_cache = APPLICATION_PATH "/../public/html/tags" resources.frontController.params.disableOutputBuffering = true I changed the code of the page \application\test\default\controllers\IndexController.php the code like this : class IndexController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ $this->_helper->cache(array('index'), array('allentries')); } public function indexAction() { } } then run the page(url like http://127.0.0.1/test/public/index.php) , I found the "public\html\test\public\index.php.html" have created , but the static html("index.php.html") is null , the view template code not be founded. actually it must having some thing (it is the zend framework welcome page). why? then I change the code like this class IndexController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ $this->_helper->cache(array('index'), array('allentries')); } public function indexAction() { echo "hello world": } } now , i see the "test\public\html\test\public\index.php.html" output "hello world" , but also the view template code not be founded. why ? can you help me ? -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Multi-modules-and-created-static-html-find-a-bug-tp4526046p4526046.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
