Exemple #1
0
 /**
  * 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();
     }
 }
Exemple #2
0
 /**
  * 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();
 }
Exemple #3
0
 /**
  * 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);
 }