本文整理匯總了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);
}
示例2: route
/**
* Route the application.
*
*/
public function route()
{
parent::route();
$Itemid = JRequest::getInt('Itemid');
$this->authorise($Itemid);
}
示例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);
}
示例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);
}
示例5: route
/**
* Route the application
*
* @access public
*/
function route()
{
parent::route();
}