Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用Codeigniter在数据库中存储站点配置/选项的最佳方法是什么?_Php_Codeigniter - Fatal编程技术网

Php 使用Codeigniter在数据库中存储站点配置/选项的最佳方法是什么?

Php 使用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;

是否有一些库可用于在数据库中存储站点配置字段数据,如WordPress 还有Drupal


或者有没有好的方法来存储站点变量?并允许管理员修改也。我一直在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
);