Witam,

Dopiero zaczynam się uczyć Zend Framework i już mam problem.

Kiedy uruchamiam aplikację przez wampa, dostaje takie komunikaty:

  1. Fatal error: require_once(): Failed opening required 'library/Zend/Application.php' (include_path=';.;C:\php\pear') in D:\wamp\www\Zend1\public\index.php on line 18
  2.  
  3. Warning: require_once(library/Zend/Application.php): failed to open stream: No such file or directory in D:\wamp\www\Zend1\public\index.php on line 18

Poszukałem trochę w internecie rozwiązania i wyszło na to że prawdopodobnie chodzi ościężkę do bibliotek przez get_include_path, ale nie wiem jak mam wprowadzić ją prprawnie i tu proszzę o pomoc, poniżej wkleję kod z mojego index.php.

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


Pozdrawiam

EDIT:

Znalazłem rozwiązanie w tym temacie smile.gif

http://forum.php.pl/lofiversion/index.php/t205594.html

Temat do usunięcia.