Configure Zend Framework with exception under WAMP5

Source: Internet
Author: User
Tags stack trace zend framework
There are errors in configuring the Zend Framework under WAMP5!
I was watching PHP100 Video learning Zend Framework, the configuration of the following error occurred, I hope that the shrimp pointing under?
index.php

Error_reporting (e_all| E_STRICT); When you turn on Error reporting

Date_default_timezone_set (' Asia/shanghai '); Configuration area

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 '; Loading the Zend Frame
Zend_loader_autoloader::getinstance ()->setfallbackautoloader (true); static loading of automatic class files

$registry = Zend_registry::getinstance (); Static Get instance
$view = new Zend_view (); Instantiate Zend Templates
$view-Setscriptpath ('./application/views/scripts/'); Set the template display path
$registry [' view '] = $view; Register view

Setting up the Controller
$frontController = Zend_controller_front::getinstance ();

$frontController-Setbaseurl ('/zendframework ')//Set 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: Zend_controller_front->dispatch () #2 {main} thrown in F:\local_www\zendframework\library\Zend\ controller\dispatcher\standard.php on line 242

------Solution--------------------
With the Zend Framework with the wrong debug mode, or it old throw you say a lot of errors, at the beginning I was also engaged for a few days, as expected when debugging SQL.
  • Related Article

    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.