Config Class Extend to Database |
[eluser]Code Arachn!d[/eluser]
While looking around for usage and performance examples of application configuration should come from a database or file system. I found an interesting example between the pros and cons of each. So whipped out the trusty IDE (PHP Eclipse) and whipped up this simple addition to the core of CI. Code: <?php Call in the class constructor for your controller. Code: $this->config->db_config_fetch(); One last thing - either update where the database name is called from the static var file in the class or just add this to your config file: Code: $config['dbt_site_config'] = 'site_config'; Seen in the wiki |
Messages In This Thread |
Config Class Extend to Database - by El Forum - 08-21-2007, 07:48 PM
|