Save config items into a separate config file |
[eluser]CARP[/eluser]
I'm thinking about making a controller/view specific to configure application settings, like company name, address, email, phone, fax. Is there any way (helper, library) to save this settings into a config file, which will be loaded automatically from autload.php ? If file doesn't exists, or $config['companydata_name'] is empty, then I'd redirect automatically to the controller Thanks a lot in advance,
[eluser]pistolPete[/eluser]
Did you read the user guide? http://ellislab.com/codeigniter/user-gui...onfig.html Quote:... if you prefer to keep your configuration items separate (assuming you even need config items), simply create your own file and save it in config folder. If you really want to edit the files using PHP, have a look at - http://ellislab.com/forums/viewthread/131748/ - http://ellislab.com/forums/viewthread/130595/
[eluser]CARP[/eluser]
Yes, I guess I'll have to create the file first, set some config variables, and then to load and save from controllers Thanks pistolPete |
Welcome Guest, Not a member yet? Register Sign In |