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);
:
エラーが発生していますか? – Pratyush