我在 phtml 页面中写了这两行:
$array = Mage::getStoreConfig('extcontacts/extendedcontactsGroup');
var_dump($array);
这是结果:
array (size=8)
'excontactus_select' => string '1' (length=1)
'defaultrecipient_text' => string 'soufiane.marar1@gmail.com' (length=25)
'departements_textarea' => string 'Sales Department,sales@example.com
Support Department,support@example.com' (length=74)
'staticblock_select' => string '1' (length=1)
'contactfrm_select' => string '0' (length=1)
'emailsender_select' => string 'general' (length=7)
'sendcopytosender_select' => string '0' (length=1)
'emailtemplate_select' => string 'extcontacts_extendedcontacts_group_emailtemplate_select' (length=55)
对于 select 它返回 1 或 0,我不希望返回 1 或 0 我想要字符串。
staticblock_select items example = block1,block2,block3...
我该怎么做才能让它返回选定的值?