Bonjour ,
mon souci est le suivant :
un projet qui tourne sans problème sous WAMP rencontre l'erreur suivante lors de la migration vers Ubuntu 10.04 LTS
voici l'erreur qui me sort :
Warning: include(Affect.php): failed to open stream: No such file or directory in /var/www/projet/library/Zend/Loader.php on line 83 Warning: include(): Failed opening 'Affect.php' for inclusion (include_path='.:./library:./application/models/:.:/usr/share/php:/usr/share/pear') in /var/www/projet/library/Zend/Loader.php on line 83 Fatal error: Class 'Affect' not found in /var/www/projet/application/controllers/IndexController.php on line 2171
ou Affect.php contient la classe qui herite de Zend_db_table et qui se trouve au niveau du repertoire /var/www/cri/application/models
la librairie Zend se trouve : /var/www/projet/library
en gros il n'accède pas aux models
voici un morceau de index.php:
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
// mise en place des répertoires et chargement des classes
set_include_path('.'
. PATH_SEPARATOR . './library'
. PATH_SEPARATOR . './application/models/'
. PATH_SEPARATOR . get_include_path());
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->setFallbackAutoloader(true);
je vous remercie d'avance pour vos suggestions , si vous avez besoin d'autres informations n'hésitez pas
Partager