當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JApplication::route方法代碼示例

本文整理匯總了PHP中JApplication::route方法的典型用法代碼示例。如果您正苦於以下問題:PHP JApplication::route方法的具體用法?PHP JApplication::route怎麽用?PHP JApplication::route使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JApplication的用法示例。


在下文中一共展示了JApplication::route方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: route

 /**
  * Route the application.
  *
  */
 public function route()
 {
     parent::route();
     $Itemid = $this->input->getInt('Itemid');
     $this->authorise($Itemid);
 }
開發者ID:TFToto,項目名稱:playjoom-builds,代碼行數:10,代碼來源:application.php

示例2: route

 /**
  * Route the application.
  *
  */
 public function route()
 {
     parent::route();
     $Itemid = JRequest::getInt('Itemid');
     $this->authorise($Itemid);
 }
開發者ID:mined-gatech,項目名稱:hubzero-cms,代碼行數:10,代碼來源:application.php

示例3: route

	/**
	 * 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);
	}
開發者ID:raeldc,項目名稱:com_learn,代碼行數:27,代碼來源:application.php

示例4: route

 /**
  * 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);
 }
開發者ID:JSWebdesign,項目名稱:intranet-platform,代碼行數:18,代碼來源:application.php

示例5: route

 /**
  * Route the application
  *
  * @access public
  */
 function route()
 {
     parent::route();
 }
開發者ID:Fellah,項目名稱:govnobaki,代碼行數:9,代碼來源:application.php


注:本文中的JApplication::route方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。