static function GetSingleton() { if (FrontController::$singleton === null) { FrontController::$singleton = new FrontController(); } return FrontController::$singleton; }
/** * Returns the Singleton front controller instance. */ public static function &fc() { if (is_null(self::$singleton)) { $siteconfig = array(); include './config.inc.php'; self::$singleton = new FrontController($siteconfig); } return self::$singleton; }