0

我正在尝试将 php zend 文件从服务器运行到本地主机(迁移)。我已经更改了我知道的配置,但是当我尝试运行它时,浏览器中出现以下错误;

Array ( [0] => Zend_Controller_Dispatcher_Exception Object 
   ( 
   [message:protected] => Invalid controller specified (www) 
   [string:Exception:private] => [code:protected] => 0 
   [file:protected] => C:\xampp\htdocs\www\html\library\Zend\Controller\Dispatcher\Standard.php 
   [line:protected] => 241 
   [trace:Exception:private] => Array ( 
         [0] => Array ( 
            [file] => C:\xampp\htdocs\www\html\library\Zend\Controller\Front.php 
            [line] => 936 
            [function] => dispatch 
            [class] => Zend_Controller_Dispatcher_Standard 
            [type] => -> [args] => Array ( 
                 [0] => Zend_Controller_Request_Http Object ( 
                     [_paramSources:protected] => Array ( 
                         [0] => _GET [1] => _POST ) 
                         [_requestUri:protected] => /www/html/web/ 
                         [_baseUrl:protected] => 
                         [_basePath:protected] => 
                         [_pathInfo:protected] => /www/html/web/ 
                         [_params:protected] => Array ( 
                             [controller] => www 
                             [action] => html 
                             [module] => default 
                             )
                         [_aliases:protected] => Array ( ) 
                         [_dispatched:protected] => 1 
                         [_module:protected] => default 
                         [_moduleKey:protected] => module 
                         [_controller:protected] => www 
                         [_controllerKey:protected] => controller 
                         [_action:protected] => html 
                         [_actionKey:protected] => action 
                     ) 
                 [1] => Zend_Controller_Response_Http Object ( 
                     [_body:protected] => Array ( ) 
                     [_exceptions:protected] => Array RECURSION 
                     [_headers:protected] => Array ( ) 
                     [_headersRaw:protected] => Array ( ) 
                     [_httpResponseCode:protected] => 200 
                     [_isRedirect:protected] => 
                     [_renderExceptions:protected] => 
                   [headersSentThrowsException] => 1 
                 )
            )
       ) 
       [1] => Array ( 
           [file] => C:\xampp\htdocs\www\html\index.php 
           [line] => 5 
           [function] => dispatch 
           [class] => Zend_Controller_Front 
           [type] => -> 
           [args] => Array ( ) 
       )
   )
   [previous:Exception:private] => 
)
)

你们能帮我解决这个错误吗?提前致谢

4

1 回答 1

0

在该文件的末尾添加以下行

Host ip localsite url

例如

127.192.220.12 zend.local

我不确定这是最终的解决方案。但它可能会对您有所帮助!

于 2013-08-06T08:09:12.197 回答