[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.