Esempio n. 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();
 }
Esempio n. 2
0
 /**
  * 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();
 }
Esempio n. 3
0
 /**
  * Execute a task
  *
  * @return     void
  */
 public function execute()
 {
     // Get the task
     $this->_task = Request::getVar('task', '');
     parent::execute();
 }