我創建的Joomla組件和我有問題,在一個視圖中從後的Joomla GET POST數據
accesing數據我有6個收件箱,其中3是由JTable類chandled和多數民衆贊成不錯,但其他3我想到過程中,我的領域:
<input id="jform[team1_goals_players]" class="" type="hidden" name="jform[team1_goals_players]" value="2,2," aria-invalid="false">
<input id="jform_team1_goals" class="required" type="text" value="4" name="jform[team1_goals]" aria-required="true" required="required" aria-invalid="false">
第一個是場,我要處理和第二由JTable類使用
$sth = JRequest::get('team1_goals_players');
$某物chandled爲空
,我應該用JRequest來獲取價值等2
好吧,與JRequest :: getVar一起工作,非常感謝 – Viszman
對於Joomla 2.5 JRequest已被棄用。您應該使用JInput來代替(請參閱http://docs.joomla.org/Retrieving_request_data_using_JInput) –