require_once 'Zend/Controller/Front.php'; $frontController = Zend_Controller_Front::getInstance(); $router = $frontController->getRouter(); $router->addRoute( 'home', new Zend_Controller_Router_Route('/', array( 'controller' => 'index', 'action' => 'index' )) ); $router->addRoute( 'profile', new Zend_Controller_Router_Route('/:username', array( 'controller' => 'users', 'action' => 'profile' )) );
require_once 'Zend/Controller/Front.php'; require_once 'MyApp/LogPlugin.php'; require_once 'MyApp/AuthPlugin.php'; $frontController = Zend_Controller_Front::getInstance(); $frontController->registerPlugin(new MyApp_LogPlugin()); $frontController->registerPlugin(new MyApp_AuthPlugin());Package library: The Zend_Controller_Front class is part of the Zend Framework's Controller package library. This package library is a collection of classes and tools for building web applications using the Model-View-Controller (MVC) design pattern.