コード例 #1
0
ファイル: FrontAppController.php プロジェクト: phpffcms/ffcms
 /**
  * FrontAppController constructor. Check if app is enabled in database
  * @throws ForbiddenException
  */
 public function __construct()
 {
     if (!$this->isEnabled()) {
         throw new ForbiddenException(__('This application is disabled or not installed!'));
     }
     // add localizations
     App::$Translate->append(App::$Alias->currentViewPath . '/I18n/' . App::$Request->getLanguage() . '.php');
     parent::__construct();
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: phpffcms/ffcms
 public function __construct()
 {
     $this->loadAppsTable();
     parent::__construct();
 }
コード例 #3
0
ファイル: ApiController.php プロジェクト: phpffcms/ffcms
 /**
  * ApiController constructor. Disable global layout for api responses
  */
 public function __construct()
 {
     $this->layout = null;
     parent::__construct();
 }