I've this issue on my project and i don't know what more i can do to solve it.
On my localhost enviroment it's work just fine, but when i send it to server simply stop work with this waring+fatal error menssage.
Warning: include_once(model/Login.php): failed to open stream:
No such file or directory in /var/www/ecommerce/include_path/Zend/Loader.php on line 134 Warning: include_once():
Failed opening 'model/Login.php' for inclusion
(include_path='/var/www/wdna.com.br/admin2/application/../library::/var/www/wdna.com.br/admin2/library:
/var/www/wdna.com.br/admin2/application/modules.:/usr/share/php:/var/www/ecommerce/include_path') in /var/www/ecommerce/include_path/Zend/Loader.php on line 134
Fatal error: Class 'model_Login' not found in /var/www/wdna.com.br/admin2/application/modules/default/controllers/LoginController.php on line 15
My folder structure is something like that:
+---application
| \---modules
| \---default
| +---models
LoginController.php:
15 $login = new default_models_Login();
16 $login = $login->login($this->_getParam('login'), $this->_getParam('senha'));
My function _initAutoloader:
protected function _initAutoloader(){
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('App');
}
The new error:
Warning: include_once(Default/Models/Login.php): failed to open stream: No such file or directory in /var/www/ecommerce/include_path/Zend/Loader.php on line 134 Warning: include_once(): Failed opening 'Default/Models/Login.php' for inclusion (include_path='/var/www/wdna.com.br/admin2/application/../library::/var/www/wdna.com.br/admin2/library:/var/www/wdna.com.br/admin2/application/modules.:/usr/share/php:/var/www/ecommerce/include_path') in /var/www/ecommerce/include_path/Zend/Loader.php on line 134 Fatal error: Class 'Default_Models_Login' not found in /var/www/wdna.com.br/admin2/application/modules/default/controllers/LoginController.php on line 15
Any help will be much appreciated.
/var/www/wdna.com.br/admin2/application/modules/default/models/Login.php
? Could you also add line 15 of LoginController.php and perhaps some info on your current autoloader setup. – Tim Fountain