Ejemplo n.º 1
0
 /**
  * Route the application.
  *
  */
 public function route()
 {
     parent::route();
     $Itemid = $this->input->getInt('Itemid');
     $this->authorise($Itemid);
 }
Ejemplo n.º 2
0
 /**
  * Route the application.
  *
  */
 public function route()
 {
     parent::route();
     $Itemid = JRequest::getInt('Itemid');
     $this->authorise($Itemid);
 }
Ejemplo n.º 3
0
	/**
	 * Route the application
	 * 
	 * This function will perform a 301 redirect to the default menu item if the route is empty 
	 * to avoid duplicate URL's
	 *
	 * @param	object A JURI object.
	 * @access public
	 */
	function route($uri = null)
	{
	    if(!isset($uri)) {
		    $uri = clone(JURI::getInstance());
		}
 		
 		// get the route based on the path
 		$route = trim(str_replace(array(JURI::base(true), $this->getSite(), 'index.php'), '', $uri->getPath()), '/');

 		//Redirect to the default menu item if the route is empty
		if(empty($route) && $this->getRouter()->getMode() == JROUTER_MODE_SEF) 
		{
		   $route = JRoute::_('index.php?Itemid='.$this->getMenu()->getDefault()->id);
		   $this->redirect($route, '', '', true);
		}
		
		parent::route($uri);
	}
Ejemplo n.º 4
0
 /**
  * Route the application
  *
  * @param	object A JURI object.
  * @access public
  */
 function route($uri = null)
 {
     if (!isset($uri)) {
         $uri = clone JURI::getInstance();
     }
     //Forward to https
     if ($this->getCfg('force_ssl') >= 1 && strtolower($uri->getScheme()) != 'https') {
         $uri->setScheme('https');
         $this->redirect($uri->toString());
     }
     parent::route($uri);
 }
Ejemplo n.º 5
0
 /**
  * Route the application
  *
  * @access public
  */
 function route()
 {
     parent::route();
 }