Welcome Guest, Not a member yet? Register   Sign In
What do you do with your config arrays?
#1

[eluser]Bramme[/eluser]
Hey all,

I'm looking for some input:

I'm building a website and the frontend is based on one controller. I've got a contact page, a news page with pagination etcetera etcetera. This means that my controller is littered with arrays like $fields, $rules, $pagination_config, $data['form'] (to use with the form helper) and so forth.

I've put the largest part of my $pagination_config in it's separate config file, same goes for email and so on, but I was wondering: do you put your $rules $fields and $form array in a separate file too?

I guess I could make a helper that simply returns those arrays, but I was wondering if there was a better way to do this.


Messages In This Thread
What do you do with your config arrays? - by El Forum - 07-16-2008, 09:53 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 05:37 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 05:41 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 05:50 AM
What do you do with your config arrays? - by El Forum - 07-17-2008, 06:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB