i新开发具有SEF功能的组件。
我通过查询路线的查询。php
JRoute::_('index.php?com_example&view=profile&layout=item_interestonme&id='.$itemval["profile_id"]);
在rout.php中,
$query display Array ( [Itemid] => 114 [option] => com_example )
仅。查看,布局,ID不显示。如何解决此问题。
路由器接口中有一个预处理方法,如下定义:
/**
* Prepare-method for URLs
* This method is meant to validate and complete the URL parameters.
* For example it can add the Itemid or set a language parameter.
* This method is executed on each URL, regardless of SEF mode switched
* on or not.
*
* @param array $query An associative array of URL arguments
*
* @return array The URL arguments to use to assemble the subsequent URL.
*
* @since 3.3
*/
public function preprocess($query);
您可以尝试在route.php中覆盖它。也许显示参数从默认实现中的查询中删除?