예제 #1
0
 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
0
 /**
  * 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
0
 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);
 }