Bonjour,
je travaille avec Flex For PHP 4.5 (Zend 1.10.8 pour le PHP), sur IIS et SQL Server 2005.
Or, de temps en temps, j'ai une erreur qui survient :
PHP Fatal error: Cannot redeclare class Zend_Loader in ZendFramework\library\Zend\Loader.php on line 31
Après avoir regardé sur le net, beaucoup parle de fichier application.ini dans lequel il faut dé-commenter une ligne :
includePaths.library = APPLICATION_PATH "/../library"
Or, travaillant avec Flex je n'ai pas de fichier application.ini. Il y a un fichier amf_config.ini, dans lequel j'indique le chemin de mon Zend... Et c'est tout...
Voici son contenu :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| [zend]
;set the absolute location path of webroot directory, example:
;Windows: C:\apache\www
;MAC/UNIX: /user/apache/www
webroot =C:/wamp/www/MonProjet
;set the absolute location path of zend installation directory, example:
;Windows: C:\apache\PHPFrameworks\ZendFramework\library
;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
;zend_path =
[zendamf]
amf.production = false
amf.directories[]=php/src/modele
amf.directories[]=php/src/modele/dao |
Si quelqu'un a une idée merci de votre aide.
Partager