Php 使用Codeigniter在数据库中存储站点配置/选项的最佳方法是什么?
是否有一些库可用于在数据库中存储站点配置字段数据,如WordPress 还有DrupalPhp 使用Codeigniter在数据库中存储站点配置/选项的最佳方法是什么?,php,codeigniter,Php,Codeigniter,是否有一些库可用于在数据库中存储站点配置字段数据,如WordPress 还有Drupal 或者有没有好的方法来存储站点变量?并允许管理员修改也。我一直在CMS工作,只是从相关问题列表中查看Codeigniter中更好的方法, Go to application > config > database file and edit database config. $active_group = 'default'; $query_builder = TRUE;
或者有没有好的方法来存储站点变量?并允许管理员修改也。我一直在CMS工作,只是从相关问题列表中查看Codeigniter中更好的方法,
Go to application > config > database file and edit database config.
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'exampl_database',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);