public function __construct($boot) { parent::__construct($boot); if (!CurrentUser::loggedIn()) { $this->authFailed(); } }
public function __construct($boot) { parent::__construct($boot); if (!(CurrentUser::loggedIn() && CurrentUser::isAuthLevel(Access::VENDOR))) { $this->redirect(''); } }
public function __construct($boot) { parent::__construct($boot); $this->section = Model::load('SectionItem'); $this->data_item = Model::load('DataItem'); $this->section->id = $_GET['section']; $this->section->load(); $this->assign('template', $this->section->template); }
public function __construct($boot) { parent::__construct($boot); $this->assign('cart_items', ShoppingCart::getTotalItems()); // vendor lock $vendor_lock = Session::get('vendor_lock'); if (is_numeric($vendor_lock)) { $this->vendor_lock = $vendor_lock; $this->assign('vlock', $this->vendor_lock); } }
public function __construct($boot) { parent::__construct($boot); CurrentUser::assertAdmin($this); $this->detectHelp(); }
public function __construct($boot) { parent::__construct($boot); $this->cache = $this->stash->get('cache'); }