Exemple #1
0
 /**
  * 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();
 }
Exemple #2
0
 /**
  * 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);
     }
     // Check if they're logged in
     if (User::isGuest()) {
         Request::setVar('task', 'login');
     }
     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->juser = User::getRoot();
     // Check if they're logged in
     if ($this->juser->get('guest')) {
         $this->login('Please login to continue');
         return;
     }
     parent::execute();
 }