![]() |
|
|||
|
Quote:
For example: [PHP] //application/modules/admin/Bootstrap.php class Admin_Boostrap extends Zend_Application_Module_Bootstrap { //can be empty }[/PHP] Then your Admin_Form_NewCategory will work. ![]() For more info, look there: Modular applications in ZF 1.8 mzBlog |
|
|||
|
Quote:
Zend Framework: module config | vandenbos.org and discovered the solution to getting Module-level Bootstrap files to actually load. The answer to the problem is not in any of the documentation I have read regarding Module implemention in Zend Framework. But all you need to do is to add 'resources.modules[] = ' to your application.ini file. This line will then enable the loading of your module Bootstrap.php files. Remember to name the module-level Bootstrap class after your module. eg. 'class Admin_Bootstrap extends Zend_Application_Module_Bootstrap' or you will get an error about 'Cannot redeclare class Bootstrap'. Hope this helps. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Designed by: Miner Skinz |
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.1.0 |
![]() |