本文整理匯總了PHP中Bootstrap::frontController方法的典型用法代碼示例。如果您正苦於以下問題:PHP Bootstrap::frontController方法的具體用法?PHP Bootstrap::frontController怎麽用?PHP Bootstrap::frontController使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::frontController方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setupFrontController
public static function setupFrontController()
{
self::$frontController = Zend_Controller_Front::getInstance();
self::$frontController->throwExceptions(true);
self::$frontController->returnResponse(true);
self::$frontController->setControllerDirectory(array('default' => self::$root . 'application/default/controllers'));
}
示例2: setupFrontController
/**
* Configure the front controller.
*/
public static function setupFrontController()
{
// Get an instance.
self::$frontController = Zend_Controller_Front::getInstance();
// Return a response object after dispatch.
self::$frontController->returnResponse(true);
// Set the directories that containing controllers.
self::$frontController->setControllerDirectory(array('default' => self::$root . '/application/modules/default/controllers', 'admin' => self::$root . '/application/modules/admin/controllers', 'manager' => self::$root . '/application/modules/manager/controllers', 'payroll' => self::$root . '/application/modules/payroll/controllers', 'supervisor' => self::$root . '/application/modules/supervisor/controllers', 'user' => self::$root . '/application/modules/user/controllers'));
// Save the registry as a parameter in the front controller.
self::$frontController->setParam('registry', self::$registry);
}
示例3: setupFrontController
public static function setupFrontController()
{
self::$frontController = Zend_Controller_Front::getInstance();
self::$frontController->throwExceptions(false);
self::$frontController->returnResponse(true);
self::$frontController->setControllerDirectory(array("public" => self::$root . '/application/public/controllers', "console" => self::$root . '/application/console/controllers', "pages" => self::$root . '/application/pages/controllers', "widgets" => self::$root . '/application/widgets/controllers', "dialogs" => self::$root . '/application/dialogs/controllers', "admin" => self::$root . '/application/admin/controllers'));
self::$frontController->setDefaultModule('public');
self::$frontController->setParam('registry', self::$registry);
}