/**
  * getController return an instance of controler class. This function follows singleton
  * pattern 
  * 
  * @static
  * @access public
  * @return void
  */
 public static function getController()
 {
     if (!isset(self::$controller)) {
         self::$controller = new shnFrontController();
     }
     return self::$controller;
 }
示例#2
0
    exit(0);
}
/******** If the system is installed start the bootstrap process ********/
//Include the configuration file at the begining since
//rest of the handlers will require configuration values
require_once APPROOT . 'conf/sysconf.php';
//load error and exception handlers
require_once APPROOT . 'inc/handler_error.inc';
require_once APPROOT . 'inc/handler_exception.inc';
//load db handler
require_once APPROOT . 'inc/handler_db.inc';
//overide conf values from db
require_once APPROOT . 'inc/handler_config.inc';
//input ( $_GET , $_POST ) validation utf-8
require_once APPROOT . 'inc/handler_filter.inc';
//utility function used by the system
//this contain autoload to string manipulation
require_once APPROOT . 'inc/lib_util.inc';
//load session handler
require_once APPROOT . 'inc/session/handler_session.inc';
//load l10n library
require_once APPROOT . 'inc/i18n/handler_l10n.inc';
//load authentication handler
require_once APPROOT . 'inc/security/handler_auth.inc';
//load acl
require_once APPROOT . 'inc/security/handler_acl.inc';
//sahana compatibility library
/******** Load the Controler ********************************************/
//let's get in to the business
$controller = shnFrontController::getController();
$controller->dispatch();