Posted by kanian77 on Tue 6 Nov 10:35
report abuse | download | new post
- <?php
- //My propel ORM plugin
- //include the ORM engine bootstrap file
- require_once('propel.php');
- //start the ORM
- Propel::init('conf'.DS.'oursource-conf.php');
- class ModelPlugin extends Zend_Controller_Plugin_Abstract
- {
- public function routeStartup(Zend_Controller_Request_Abstract $request)
- {
- //$this->getResponse()->appendBody("<p>routeStartup() called</p>\n");
- }
- public function routeShutdown(Zend_Controller_Request_Abstract $request)
- {
- $controllerName = $this->getRequest()->getControllerName();
- {
- require_once($modelClass);
- }
- {
- require_once($modelServiceClass);
- }
- }
- public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)
- {
- //$this->getResponse()->appendBody("<p>dispatchLoopStartup() called</p>\n");
- }
- public function preDispatch(Zend_Controller_Request_Abstract $request)
- {
- //$this->getResponse()->appendBody("<p>preDispatch() called</p>\n");
- }
- public function postDispatch(Zend_Controller_Request_Abstract $request)
- {
- //$this->getResponse()->appendBody("<p>postDispatch() called</p>\n");
- }
- public function dispatchLoopShutdown()
- {
- //$this->getResponse()->appendBody("<p>dispatchLoopShutdown() called</p>\n");
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.