Tuesday, February 1, 2011

Re: Select Box - Table or Tinyint?

Just an update.

I implemented this method just now and it works a charm, the only thing I need to comment on (because I'm fussy).

In my "create" action for the model related to these array_sources, I need to load around 10 list select boxes.

In my controller this means having 10x $var = $this->Model->Model2->find() lines, and then use $this->set(compact(...

I hate repetition, is there a better way to do this, or should I just accept my data requires it?


--
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: