php - How to get modules to work in the Zend Framework -


I am getting the following error when trying to use a modular layout in my Zend Framework application:

Undefined index: C: \ PHP \ Authentication \ Zend \ Controller \ Dispatcher \ Standard.php on line 385

The following code runs before this error:

 < Code> if (! $ This-> _acl- & gt; given ($ role, $ resource, $ privilege)) {$ request-> SetModuleName ('authentication'); $ Request & gt; SetControllerName ('Certification'); $ Request & gt; SetActionName ('Login'); $ Request & gt; SetDispatched (false); }  

In my bootstrap, I have:

$ frontController - & gt; SetParam ('environment', $ this-> environment) - & gt; SetControllerDirectory (ROOT_DIR. '/ Controller') - & gt; Adyamuldirectory (ROOT_DIR. '/ Module');

And my directory structure is:

  / application / controller / model / view / library / module / authentication / controller AuthController.php  

Why is not anyone thinking?

case sensitivity? There is nothing in the docs that specifically refers to case sensitivity, but all the examples with modules also show the module directory name which are all lowercase.

My own, recently uses ZF App Module and directory names are all lowercase.

In addition, do you have a default module in your root definitions?


Comments