ThaiSEOBoard.com

พัฒนาเว็บไซต์ => Programming => ข้อความที่เริ่มโดย: astkboy2008 ที่ 11 สิงหาคม 2010, 04:17:03



หัวข้อ: Best Way To Set Your Website Configuration
เริ่มหัวข้อโดย: astkboy2008 ที่ 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 (http://www.jooria.com/Tutorials/tricks-19/best-way-to-set-your-website-configuration-160/index.html)