Code: Select all
; Windows: "\path1;\path2"
;include_path = ".;c:/wamp/www/phpweb20/includes/ZendFramework"
;php_value include_path ".;c:/wamp/www/phpweb20/include; c:/wamp/bin/php/PEAR"
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
I put this in the php.ini file
and then I have the index page like this:
<?php
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
$contrller = Zend_Controller_Front::getInstance();
$contrller->setControllerDirectory('../include/Controllers');
$contrller->dispach();
?>
and this error
arning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\phpweb20\htdocs\index.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;C:\php5\pear') in C:\wamp\www\phpweb20\htdocs\index.php on line 3
It drives me crazy