I want to call my custom class that is located in myModule/myFolders/myFile.php in myModule/Bootstrap.php
This is how it looks right now:
<?php
class Users_Bootstrap extends Zend_Application_Module_Bootstrap {
public function _initAutoload() {
Zend_Loader_Autoloader::getInstance()->pushAutoloader(new NAMESPACE_Excel_ExcelAutoLoader()); // This workes fine
new Myfolder_Myfile(); // THIS IS WHERE I'm CALLING my CLASS
}
public function _initRoutes() {
$router = Zend_Controller_Front::getInstance()->getRouter();
$listUsersRoute = new Zend_Controller_Router_Route("admin/users/manage", array(
'module' => 'users',
'controller' => 'admin',
'action' => 'index' ));
$router->addRoute('listUsersRoute', $listUsersRoute);
} }
if I move my custom class to myModule/Modles folder and call it from there it works.
I understand that Zend Bootstrap knows and automatically loads locations as Views, Controllers and Models from my Modules. So how can I make it load myFolder too?