โดย Patipat » 04/09/2019 7:15 pm
ดึงค่าจาก Fieldes ไม่ขึ้นครับไม่แน่ใจว่าเขียนถูกหรือเปล่าครับ พอ รันแล้วผลลัพธ์ออกมา เหมือนจะเป็นค่าว่างครับ
แล้ว value ต้องใส่อย่างไรใน Field ครับ
โค้ด: เลือกทั้งหมด
$cache_time = $advanced->get('cache_time');
echo $cache_time;
โค้ด: เลือกทั้งหมด
<fields>
<fieldset name="advanced">
<field
name="cache_time"
type="number"
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
filter="integer"
/>
</fieldset>
</fields>
พอรันแล้วได้แบบนี้ครับ
- Selection_999(1157).png (40.1 KiB) Viewed 737 times
ดึงค่าจาก Fieldes ไม่ขึ้นครับไม่แน่ใจว่าเขียนถูกหรือเปล่าครับ พอ รันแล้วผลลัพธ์ออกมา เหมือนจะเป็นค่าว่างครับ
แล้ว value ต้องใส่อย่างไรใน Field ครับ
[code=php]$cache_time = $advanced->get('cache_time');
echo $cache_time;
[/code]
[code=php]<fields>
<fieldset name="advanced">
<field
name="cache_time"
type="number"
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
filter="integer"
/>
</fieldset>
</fields>[/code]
พอรันแล้วได้แบบนี้ครับ
[attachment=0]Selection_999(1157).png[/attachment]