Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZF]Błąd - 'Cannot load controller class "IndexController"
kociou1
post
Post #1





Grupa: Zarejestrowani
Postów: 78
Pomógł: 0
Dołączył: 13.02.2004
Skąd: warszawa

Ostrzeżenie: (0%)
-----


mam kod bootstrapera wzięty z tutoriala:
  1. <?php
  2. ini_set('display_errors', 'on');
  3. date_default_timezone_set('Europe/London');
  4. set_include_path('.' . PATH_SEPARATOR . './library'
  5.  . PATH_SEPARATOR . './application/models/'
  6.  . PATH_SEPARATOR . get_include_path());
  7.  
  8. include "Zend/Loader.php";
  9. Zend_Loader::loadClass('Zend_Controller_Front');
  10.  
  11. // setup controller
  12. $frontController = Zend_Controller_Front::getInstance();
  13. $frontController -> setBaseUrl('/zend/');
  14. $frontController->throwExceptions(true);
  15. $frontController->setControllerDirectory('./application/controllers');
  16.  
  17. // run!
  18. $frontController->dispatch();
  19. ?>


wszystkie pliki są na miejscu, odpowiedznio sie nazywają, mod_rewrite włączone, htaccess:
Cytat
RewriteEngine on
RewriteRule .* index.php

i co bym nie robił na lokalu wywala błąd:
Cytat
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Cannot load controller class "IndexController" from file "IndexController.php" in directory "\"' in G:\Strony\zend\library\Zend\Controller\Dispatcher\Standard.php:295 Stack trace: #0 G:\Strony\zend\library\Zend\Controller\Dispatcher\Standard.php(212): Zend_Controller_Dispatcher_Standard->loadClass('IndexController') #1 G:\Strony\zend\library\Zend\Controller\Front.php(931): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #2 G:\Strony\zend\index.php(19): Zend_Controller_Front->dispatch() #3 {main} thrown in G:\Strony\zend\library\Zend\Controller\Dispatcher\Standard.php on line 295

w sieci wszystko działa poprawnie
drogą dedukcji dochodze do wniosku że przeoczyłem coś w konfiguracji lokalnego serwera... tylko co?

Ten post edytował Cysiaczek 7.03.2008, 12:58:36
Powód edycji: dodalem tag (cysiaczek)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 19.08.2025 - 07:37