Search This Blog

Friday, April 1, 2011

Blogger: Dashboard

Blogger: Dashboard

Zend Module folder auto laoding Bootstrap.php problem

some times we need enable modules folder under application on Zend
usually the module folder contains controllers, models,views, forms folders and other common auto loading folders.

however to create the module folder works correctly we have to do bit configuration changes to application.ini, and the modules/Bootstrap.php files.

changes to Application/config/application.ini

add the followoing two lines to the above file

resources.modules[] = ""
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"



then the files Bootstrap.php under the new module folder say you ceated module called admin in the following location i.e "application/modules/admin"

so the Bootstrap.php is go to the above location as ".. admin/bootstrap.php

your new Bootstrap.php should looks like below

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap
{
}


not like

class Admin_Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
}