$front = Zend_Controller_Front::getInstance(); $front->setDefaultModule('default'); $front->setDefaultControllerName('index'); $front->setDefaultAction('index');
$front = Zend_Controller_Front::getInstance(); $front->setControllerDirectory(array( 'default' => '/path/to/default/controllers', 'admin' => '/path/to/admin/controllers' )); $front->setDefaultModule('admin'); $request = new Zend_Controller_Request_Http(); $request->setModuleName('default'); $request->setControllerName('index'); $request->setActionName('index'); $response = new Zend_Controller_Response_Http(); $front->setRequest($request)->setResponse($response)->dispatch();
$front = Zend_Controller_Front::getInstance(); $front->registerPlugin(new My_Plugin());Overall, Zend_Controller_Front is a useful package library in PHP for managing user requests and dispatching them to different controllers and actions.