An error occurred while configuring zendframework in wamp5! This post was last edited by xiongdawang from 2012-11-0715: 21: 33. I watched the PHP100 video and learned the Zend & nbsp; framework. the following error occurs during configuration, hope that prawn can give me some advice? An error occurred while configuring zend framework under wamp5!
At the end of this post, xiongdawang edited it at 15:21:33 on January 7,. I watched the PHP100 video and learned the Zend framework. the following error occurs during configuration. hope that prawn can give me some advice?
Index. php
Error_reporting (E_ALL | E_STRICT); // when the error report is enabled
Date_default_timezone_set ('Asia/Shanghai'); // Configure the region
Set_include_path ('.'. PATH_SEPARATOR. './library.'. PATH_SEPARATOR. './application/models/'. PATH_SEPARATOR.get_include_path ());
// Configure the environment path
Require_once 'zend/Loader/Autoloader. php'; // load the Zend Framework
Zend_loader_Autoloader: getInstance ()-> setFallbackAutoloader (true); // static loading of automatic class files
$ Registry = Zend_Registry: getInstance (); // Obtain the instance statically
$ View = new Zend_View (); // instantiate the zend Template
$ View-> setScriptPath ('./application/views/scripts/'); // you can specify the template display path.
$ Registry ['View'] = $ view; // register view
// Set the controller
$ FrontController = Zend_Controller_Front: getInstance ();
$ FrontController-> setBaseUrl ('/zendframework') // you can specify the basic path.
-> SetParam ('noviewbenderer', true)
-> SetControllerDirectory ('./application/controllers ')
-> ThrowExceptions (true)-> dispatch ();
?>
Error message:
Fatal error: Uncaught exception 'zend _ Controller_Dispatcher_Exception 'with message 'invalid controller specified (index. php) 'In F: \ local_www \ zendframework \ library \ Zend \ Controller \ Dispatcher \ Standard. php: 242 Stack trace: #0 F: \ local_www \ zendframework \ library \ Zend \ Controller \ Front. php (954): Zend_Controller_Dispatcher_Standard-> dispatch (Object (Zend_Controller_Request_Http), Object (Zend_Controller_Response_Http) #1 F: \ local_www \ zendframework \ index. php (24): Zend_Controller_Front-> dispatch () #2 {main} thrown in F: \ local_www \ zendframework \ library \ Zend \ Controller \ Dispatcher \ Standard. php on line 242
------ Solution --------------------
The Zend framework comes with an incorrect debugging method. Otherwise, it will throw a lot of errors you mentioned. at the beginning, I was also engaged in a few days. it was scheduled to debug SQL.