Yakalanmamış özel durum 'Zend_Controller_Dispatcher_Exception' hata Zend framework kullanırken

0 Cevap php

Aşağıdaki gibi xampp 1.7.1 package.My proje dizin yapısını çalıştıran bir Windows makinede Zend Framework v1.11.0 kullanarak im.

/
|- /data
| |- /logs
| |- /uploaded-files
| |- /tmp
|- /htdocs
|- /include
| |- /Controllers
| |- /Zend
|- /templates

Ben htdocs yer benim index.php aşağıdaki kodu var:

<?php

    require_once('Zend/Loader.php');
    Zend_Loader::registerAutoload();

    $controller = Zend_Controller_Front::getInstance();
    $controller->setControllerDirectory('../include/Controllers');
    $controller->dispatch();

?>  

Aşağıdaki gibi alıyorum hatadır:

Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in C:\xampp\htdocs\myproject\include\Zend\Loader.php on line 266

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\xampp\htdocs\myproject\include\Zend\Controller\Dispatcher\Standard.php:248 Stack trace:

#0 C:\xampp\htdocs\myproject\include\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))

#1 C:\xampp\htdocs\myproject\htdocs\index.php(8): Zend_Controller_Front->dispatch()

#2 {main} thrown in C:\xampp\htdocs\myproject\include\Zend\Controller\Dispatcher\Standard.php on line 248

. Myproject / htdocs yer benim htaccess dosyası:

RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

Benim apache httpd.conf i aşağıdaki VirtualHost tanımlanmış olması:

<VirtualHost myproject:80>
    ServerName myproject
    DocumentRoot "c:/xampp/htdocs/myproject/htdocs"
    <Directory "c:/xampp/htdocs/myproject/htdocs">
        AllowOverride None
        Options All
    </Directory>
    php_value include_path ".;c:/xampp/htdocs/myproject/include;c:/xampp/php/PEAR"
    php_value magic_quotes_gpc off
    php_value register_globals off
</VirtualHost>

Ne burada yanlış gidiyor olabilir?

Please Help Thank You

0 Cevap