ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: Best Way To Set Your Website Configuration  (อ่าน 394 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
astkboy2008
Newbie
*

พลังน้ำใจ: 6
ออฟไลน์ ออฟไลน์

กระทู้: 33



ดูรายละเอียด
« เมื่อ: 11 สิงหาคม 2010, 04:17:03 »

What Configuration Really Mean


configuration mean the site options, features and settings (some thing  like news limit in your home page, Enable or disable some features).How it works?


  • loading the configuration information from a mysql table
  • convert options to an array like: array( 'option_name' => option_value )
how i can use it?


  • get the options array
    $options get_options();

     this will return an array like array('news' => 0,'news_limit' => 15,......)
  • to use an option use
    $options['option_name']


the Tutorial
บันทึกการเข้า
หน้า: [1]   ขึ้นบน
พิมพ์