/** * Execute a task * * @return void */ public function execute() { // Get the task $this->_task = Request::getVar('task', ''); if (empty($this->_task)) { $this->_task = 'home'; $this->registerTask('__default', $this->_task); } parent::execute(); }
/** * Execute a task * * @return void */ public function execute() { // Get the task $this->_task = Request::getVar('task', ''); if (empty($this->_task)) { $this->_task = 'checkout'; $this->registerTask('__default', $this->_task); } $this->user = User::getRoot(); // Check if they're logged in if (User::isGuest()) { $this->login('Please login to continue'); return; } parent::execute(); }
/** * Execute a task * * @return void */ public function execute() { // Get the task $this->_task = Request::getVar('task', ''); parent::execute(); }