/** * 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(); }
public function __construct() { $this->loadAppsTable(); parent::__construct(); }
/** * ApiController constructor. Disable global layout for api responses */ public function __construct() { $this->layout = null; parent::__construct(); }