本文整理汇总了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();
}