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.