Reputation:
When I call (in my AdminController) the _forward
function, i get this error
Fatal error: Cannot redeclare class Admin_Boot in /www/application/modules/admin/Boot.php on line 33
Actually, my website's structure is:
#Application/
|--Bootstrap.php
|--#modules
|----#admin
|------Boot.php
|------#controllers
|------#view
|----#default
|------Boot.php
|------#controllers
|------#view
(I have not placed everything, but the most important is here)
So, if I call the admin module, I'm gonna call Bootstrap.php, and after, Admin_Boot.php ... All it's ok, it's just the _forward function who cause me some trouble ...
I need help
Upvotes: 1
Views: 502
Reputation: 1004
If you are using Zend_Loader::loadFile()
, think to set the third argument to TRUE;
Zend_Loader::loadFile("Boot.php", $dirs, true);
Upvotes: 2