2016-06-15 2 views
0

I Neu, um eine Komponente mit SEF-Funktion zu entwickeln.In Joomla, SEF Url Konvertierung Abfrage nicht erhalten Ansicht und Layout

I Pass folgende Abfrage für route.php

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

In route.php,

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

Nur. Ansicht, Layout, ID wird nicht angezeigt. Wie behebt man dieses Problem?

+0

erhalten Sie irgendwelche Fehler? – Pratyush

Antwort

0

Es ist eine Vorprozess Methode in dem Router-Schnittstelle, die wie folgt definiert:

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

Sie könnten versuchen, dies in route.php außer Kraft zu setzen. Vielleicht wird der Anzeigeparameter in der Standardimplementierung von der Abfrage entfernt?