Please! Please! Please! Zend_framework Configuration tutorial .. Please send a Configuration tutorial, PHPcode & lt ;? Phperror_reporting (E_ALL | E_STRICT); // when the error report date_defaul is enabled, find it! Please! Please! Zend_framework
Find the Configuration tutorial of Zend_framework ..
Please send a Configuration tutorial that you have used
------ Solution --------------------
PHP code
SetFallbackAutoloader (true); // automatically load class files in static mode $ registry = Zend_Registry: getInstance (); // Obtain instances in static mode $ view = new Zend_View (); // instantiate the zend template $ view-> setScriptPath ('. /application/views/web/'); // set the template display path $ registry ['View'] = $ view; // register view // configure database parameters, connect to the database $ config = new Zend_Config_Ini ('. /application/config. ini ', null, true); Zend_Registry: set ('config', $ config); $ dbAdapter = Zend_Db: factory ($ config-> general-> Db-> adapter, $ config-> general-> db-> config-> toArray (); $ dbAdapter-> query ('set NAMES utf8'); Zend_Db_Table :: setdefaadapter adapter ($ dbAdapter); Zend_Registry: set ('dbadapter ', $ dbAdapter); // Database end // set the controller $ frontController = Zend_Controller_Front: getInstance (); $ frontController-> setBaseUrl ('/mvc') // you can change the basic path mvc to the path of your project-> setParam ('noviewrenderer', true)-> setControllerDirectory ('. /application/controllers ')-> ThrowExceptions (true)-> dispatch ();?>