Hi
I'm trying to create a configuration file for a 3rd party program, from within my phalcon application..
The data is stored in the phalcon database..
I have a table in the database (and have created a model based on this):
fields: id name option1 option2 option3 groupid
I need to get this written into a text/configuration file in the following manner:
[group1]
item1
item2 option option
[group2]
item3 option
item4
This is similiar to the Config/Ini class, but that's only for reading...
I could do this with fopen and fwrite and loop through the database entries... but I just want to know if there is a better way to do it...