An error occurred while configuring zendframework on wamp5.

Source: Internet
Author: User
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? Index. php & lt ;? Phperror_reporting (E_ALL | E_S has an error in zend framework configuration under wamp5!

This post was last edited by xiongdawang at 15:21:33, 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.