i'm trying learn zend framework 1.12 module directory structure created hand. far have modules sort of working default adding bootstrap.php resides under application folder.
$this->bootstrap("frontcontroller"); $front = $this->getresource("frontcontroller"); $front->addmoduledirectory(application_path . '/modules');
i tried using application.ini settings below, kept giving me exception saying 'no default controller directory registered front controller'.
resources.frontcontroller.defaultcontroller = "index" resources.frontcontroller.defaultaction = "index" resources.frontcontroller.defaultmodule = "default" resources.frontcontroller.moduledirectory = application_path "/modules" resources.modules[] = ""
here directory structure:
root | +- application | +- configs | | | +- application.ini | +- modules | +- default | | | +- controllers | | | | | +- indexcontroller.php | | | +- views | | | +- scripts | | | +- index | | | +- index.phtml | +- signup | +- controllers | | | +- indexcontroller.php | +- views | +- scripts | +- index | +- index.phtml
this rewrite rules:
rewriteengine on rewriterule ^myroot/.*$ index.php [nc]
i try accessing http://mysite.com/root/signup keep getting 404. missing setup modules in zend?
update: if set default signup, works.
resources.frontcontroller.defaultmodule = "signup"
my best guess right rewriterule not redirecting index.php when enter
add application.ini
resources.frontcontroller.moduledirectory = application_path "/modules" resources.modules[] = "default" resources.modules[] = "signup"
Comments
Post a Comment