Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework]problem z uruchomieniem projektu.
gummmibear
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 12.03.2009
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Hej. Chciałbym uruchomić sobie projekt na ZendFramework, Troche poduczyć się w tej kwestii.


uruchamiam stronkę wraz z tutorialem znajdującym się pod adresem :


http://framework.zend.com/docs/quickstart/create-a-layout

wszystko ustawiłem sobie wraz z tutorialem.

niestety coś jednak nie działa (IMG:style_emoticons/default/sciana.gif)

uruchamiając Bootstrap.php

otrzymuję


Fatal error: Class 'Zend_Application_Bootstrap_Bootstrap' not found in /var/www/zend/quickstart/application/Bootstrap.php on line 3

Gdzie znajdują sie pliki z tą klasą?

Libki mam wgrane do katalogu:(podlinkowane)
/var/www/zend/quickstart/library/Zend

Gdzie leży mój błąd?

Ten post edytował gummmibear 11.08.2009, 22:07:51
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
gummmibear
post
Post #2





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 12.03.2009
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Znalazłem (IMG:style_emoticons/default/winksmiley.jpg)

  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 '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.  


Drzewko projektu
  1. .
  2. |-- application
  3. | |-- Bootstrap.php
  4. | |-- configs
  5. | | `-- application.ini
  6. | |-- controllers
  7. | | |-- ErrorController.php
  8. | | `-- IndexController.php
  9. | |-- layouts
  10. | | `-- scripts
  11. | | `-- layout.phtml
  12. | |-- models
  13. | `-- views
  14. | |-- helpers
  15. | `-- scripts
  16. | |-- error
  17. | | `-- error.phtml
  18. | `-- index
  19. | `-- index.phtml
  20. |-- dawid.txt
  21. |-- library
  22. | `-- Zend -> ../../../Zend/library/Zend/
  23. |-- public
  24. | `-- index.php
  25. `-- tests
  26. |-- application
  27. | `-- bootstrap.php
  28. |-- library
  29. | `-- bootstrap.php
  30. `-- phpunit.xml
  31.  


Ten post edytował gummmibear 13.08.2009, 11:56:40
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 16:31