0
我有自定義編碼的Joomla v1.5組件。在管理員區域中,我更改其參數,但是當我在代碼中使用參數值時,我僅獲取默認值,但不是我在組件管理員區域參數窗口中設置的新值。Joomla 1.5無法保存組件參數
global $option;
$params = &JComponentHelper::getParams($option);
print_r($params);
輸出看起來是這樣的:
JParameter Object
(
[_raw] => param_1=This is changed value of the param 1
param_2=20
param_3=This is changed value of the param 3
[_xml] =>
[_elements] => Array
(
)
[_elementPath] => Array
(
[0] => /home/x/domains/xyz.com/public_html/libraries/joomla/html/parameter/element
)
[_defaultNameSpace] => _default
[_registry] => Array
(
[_default] => Array
(
[data] => stdClass Object
(
[param_1] => some default value 1
[param_2] => 10
[param_3] => some default value 3
)
)
)
[_errors] => Array
(
)
)
你怎麼在輸出帕拉姆原始數據的變化,但數據字段沒有。所以有什麼問題 ?有任何想法嗎 ?