Welcome, Guest
Username: Password: Remember me

TOPIC: function applyRedirection

function applyRedirection 08 Oct 2013 09:18 #11330

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
protected function applyRedirection

I would add also the case "home":
		switch($redirection)
		{
			//Stay on the same page
			case 'stay':
				$this->setRedirect(JshopHelper::urlRequest());
				return;
				break;
		
		/* hack */
			//Return to the homepage
			case 'home':
				$this->setRedirect('index.php');
				return;
				break;
		/* hack */
			//Return to the previous page in navigation history
			case 'previous':
				//TODO
				break;
		}
The administrator has disabled public write access.
Time to create page: 0.151 seconds

Get Started