/** * init * * @return void */ public function init() { parent::init(); if (empty(\XLite\Core\Request::getInstance()->login)) { \XLite\Core\Request::getInstance()->login = \XLite\Core\Auth::getInstance()->remindLogin(); } }
/** * Initialize controller * * @return void */ public function init() { parent::init(); // Download data from marketplace \XLite\Core\Marketplace::getInstance()->saveAddonsList(); // Download data from marketplace \XLite\Core\Marketplace::getInstance()->checkAddonsKeys(); }
/** * init * * @return void */ public function init() { if (!in_array('country_code', $this->params)) { $this->params[] = 'country_code'; } parent::init(); $countryCode = isset(\XLite\Core\Request::getInstance()->country_code) ? \XLite\Core\Request::getInstance()->country_code : \XLite\Core\Config::getInstance()->General->default_country; $this->set('country_code', $countryCode); }