2016-06-15 7 views
0

I SEF機能付きコンポーネントを新しく開発する。Joomlaでは、SEF URL変換クエリが表示されず、表示されません。

は私だけ

$query display Array ([Itemid] => 114 [option] => com_example) 

、route.php

route.phpで
JRoute::_('index.php?com_example&view=profile&layout=item_interestonme&id='.$itemval["profile_id"]); 

ために、次のクエリを渡します。表示、レイアウト、IDは表示されません。この問題を解決する方法。あなたはroute.phpでこれを上書きしようとすることができ

/** 
* 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); 

+0

エラーが発生していますか? – Pratyush

答えて

0

次のように定義されたルータインターフェイスでの前処理方法は、あります。デフォルトの実装では、display-parameterがクエリから削除されている可能性がありますか?

関連する問題