/** * Initialize application: set app route path, tpl path, append language translations */ public function before() { parent::before(); // define application root diskpath and tpl native directory $this->appRoot = realpath(__DIR__ . '/../../../'); $this->tplDir = realpath($this->appRoot . '/Apps/View/Admin/default/demoapp/'); // load internalization package for current lang $langFile = $this->appRoot . '/I18n/Admin/' . App::$Request->getLanguage() . '/Demoapp.php'; if (App::$Request->getLanguage() !== 'en' && File::exist($langFile)) { App::$Translate->append($langFile); } }
/** * Widget constructor. Disable installation checking for this controller */ public function __construct() { parent::__construct(false); }
/** * Application constructor. */ public function __construct() { // prevent version checks parent::__construct(false); }