Zend_Controller_Router_Route and creating new routes (for version 0.9 and later)
Wojciech As rightly pointed out in the commentary to the previous post since version 0.9 was introduced a few changes. Among other things, to place the library in one directory, it was decided to divide the class into several other Zend. File Zend.php Provides disappear in version 1.0.
Since I'm in your project was based on version 0.8 I decided to give a modified version of the code, and in fact only part of the index.php file:
/ / From now on, instead of loading a class file loader Zend.php
require_once 'Zend / Loader.php ';
try {/ / Load classes done by the method of the class
/ /
Zend_Loader
/ /
In addition, service class is required for register
Zend_Loader:: loadClass ('Zend_Registry'); Wednesday, April 4, 2007
Vidio Lesbian Milena Velba
Zend_Loader:: loadClass ('Zend_Controller_Front');
Zend_Loader:: loadClass ('Zend_Controller_Router_Rewrite');
/ / We set the base address
Zend_Loader:: loadClass ('Zend_Controller_Router_Rewrite');
/ / We set the base address
$ baseurl = substr ($ _SERVER ['PHP_SELF'], 0,
strpos ($ _SERVER ['PHP_SELF'], '/ Index.php'));
/ / Configure class
view $ view = new Zend_View ();
$ view-> baseurl = $ baseurl;
$ view-> setScriptPath ('. / Application / views') ;
/ / Place it in the registry by the device of a new class Zend_Registry:: set ('view', $ view);
rest of the code remains unchanged
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment