Welcome Guest, Not a member yet? Register   Sign In
Using a loop for setting a array in a config file? Is it ok?
#1

[eluser]RS71[/eluser]
Hey

Is it ok to do a loop in a config file to make an array?

I have a form and I was thinking of making a config file with arrays of the possible select values (used both in the form helper and validation)

Is there a better way to do this?
#2

[eluser]TheFuzzy0ne[/eluser]
Why not? As long as you're sure it's not going to cause an error if something goes wrong, you can do pretty much whatever you want in your config file.

I recommend you put your form data into either a database or a separate config file, though.




Theme © iAndrew 2016 - Forum software by © MyBB