![]() |
![]() |
-KtośTamJakiśTam- |
![]()
Post
#1
|
Goście ![]() |
Witam, mam problem. Otóż to od długiego czasu po wgraniu plików framework'a Zend walczę z ścieżką do plików, robiłem wszystko według tego kursu. Mój plik index.php jest taki sam
Kod <?php error_reporting(E_ALL|E_STRICT); date_default_timezone_set('Europe/London'); set_include_path('.' . PATH_SEPARATOR . './library' . PATH_SEPARATOR . './application/models/' . PATH_SEPARATOR . get_include_path()); include "Zend/Loader.php"; Zend_Loader::loadClass('Zend_Controller_Front'); // setup controller $frontController = Zend_Controller_Front::getInstance(); $frontController->throwExceptions(true); $frontController->setControllerDirectory('./application/controllers'); // run! $frontController->dispatch(); Mam taką samą strukturę folderów Cytat zf-tutorial/ /application /controllers /models /views /filters /helpers /scripts /library /Zend /public /images /scripts /styles I mam taki komunikat Cytat Warning: include(Zend/Loader.php) [function.include]: failed to open stream: No such file or directory in /virtual/cakephp.cba.pl/zf-tutorial/index.php on line 11 Warning: include() [function.include]: Failed opening 'Zend/Loader.php' for inclusion (include_path='../library:.:/opt/lib/php') in /virtual/cakephp.cba.pl/zf-tutorial/index.php on line 11 Fatal error: Class 'Zend_Loader' not found in /virtual/cakephp.cba.pl/zf-tutorial/index.php on line 12 Próbowałem multum razy zmieniać ścieżkę przy pomocy set_include_path rezultat zawsze identyczny... Plik .htaccess musiałem trochę zmienić, "bo to cba.pl" Kod RewriteEngine on RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] Co robić? Jak uzyskać prawidłową ścieżkę? Link do strony |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 20:03 |