當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Bootstrap::frontController方法代碼示例

本文整理匯總了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'));
 }
開發者ID:uester,項目名稱:escolaonline,代碼行數:7,代碼來源:Bootstrap.php

示例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);
 }
開發者ID:mtday,項目名稱:timesheet-system,代碼行數:14,代碼來源:Bootstrap.php

示例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);
 }
開發者ID:segphault,項目名稱:storytlr,代碼行數:9,代碼來源:Bootstrap.php


注:本文中的Bootstrap::frontController方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。