Load codeigniter settings in external file

0

Does anyone know how I can load all the settings of codeigniter into some external file, giving a require?

For example: A .css file that takes information from the database!

Does anyone know how to include, or which file to include, so that it loads all the configuration of the database that is already in application / config / database.php ??

Thank you in advance ...

    
asked by anonymous 01.02.2015 / 06:59

1 answer

1

Your question is not very clear, especially the case with .css. From what I understand, you want to get the contents of the CI files and include them in the database or another PHP file.

Well, take a look at the File helper of the CI and its functions for reading and writing files from the site folders.

The good thing about using this helper is that you can overwrite, for example, the file config.php or database.php with custom settings.

    
20.03.2015 / 21:26