本文整理汇总了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);
}