Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Pages: 1
Bonjour a tous,
J'ai un problème qui n'as pas grand chose a voir avec le framework lui-meme mais auquel vous avez peut etre été deja confronté :
Mon but etant de placer la library ZEND dans un endroit accessible a toutes mes applis... donc en dehors de
http://locahost/monappli/
Jusque la cela semble trivial sauf que je galère :'(
Voila mon index.php :
// Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__).'..\application')); print("Path: ".realpath(APPLICATION_PATH)); //Affiche => Path: C:\Program Files\EasyPHP5.3.0\www\Test2\public // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development')); // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( 'C:\Program Files\EasyPHP5.3.0\www\library\\', get_include_path(), ))); /** Zend_Application */ require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application->bootstrap() ->run();
Donc j'ai une erreur comme quoi il me trouve pas "application.ini" mais normal puisque le print que je fais pour debug ne m'affiche pas le bon chemin ... :'(
Une idée ?
Merci a vous.
Dernière modification par Seubeu (28-09-2009 14:55:19)
Hors ligne
Bon il manquait un "/" ...
// Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '\..\application'));
bref c'etait tout con
Désolé haha
A+
Hors ligne
Pages: 1