Cześć,
próbuję uruchomić Zend Framework lecz niestety mi to nie idzie. Korzystam jak zawsze z WebServ.
Moja struktura katalogów i plików wygląda następująco:
Cytat
/katalog
/application
/data
/library
/Zend
/public
/scripts
/tests


Prubuję uruchomić plik index.php, lecz przy próbie uruchomienia otrzymuję takie ostrzeżenie i błąd:

  1. Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in C:\WebServ\httpd\zend\public\index.php on line 19
  2.  
  3. Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='C:\Program Files\WebServ\httpd\library') in C:\WebServ\httpd\zend\public\index.php on line 19


Katalog z Zendem nazwałem Zend oraz umieściłem w katalogu library.
To jest kod pliku index.php:

  1. <?php
  2. // Define path to application directory
  3. defined('APPLICATION_PATH')
  4. || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  5.  
  6. // Define application environment
  7. defined('APPLICATION_ENV')
  8. || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
  9.  
  10. // Ensure library/ is on include_path
  11. set_include_path(implode(PATH_SEPARATOR, array(
  12. realpath(APPLICATION_PATH . '/../library'),
  13. )));
  14.  
  15. /** Zend_Application */
  16. require_once 'Zend/Application.php';
  17.  
  18. // Create application, bootstrap, and run
  19. $application = new Zend_Application(
  20. APPLICATION_ENV,
  21. APPLICATION_PATH . '/configs/application.ini'
  22. );
  23. $application->bootstrap()
  24. ->run();



Co zrobiłem źle i jak to naprawić?