Re: Best place to put "odds & ends" functions?

2007-09-06 Thread Grant Cox
Out of interest, is your "function that takes an array from a findAll, and returns an array of the primary ids" something like: $results = $this->Model->findAll(); $primary_ids = Set::extract($results, '{n}.Model.id'); --~--~-~--~~~---~--~~ You received this mess

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread [EMAIL PROTECTED]
ke's > awesome Set class. > See:http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-... > > On Sep 6, 4:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Where's the best place to put "odds & ends" functio

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread MattC
-eats-arrays-for-breakfast/ On Sep 6, 4:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Where's the best place to put "odds & ends" functions that don't > necessarily fit in any controllers, but may apply to them all? > > For example

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread Pablo Viojo
viojo.net > > > On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Where's the best place to put "odds & ends" functions that don't > > necessarily fit in any controllers, but may apply to them all? > > > > For example I

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread Pablo Viojo
app_controller if related to controller app_model if related to model bootstrap.php if general -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Where's the best place to put "odds & ends" functions

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread majna
In app_controller. On Sep 6, 10:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Where's the best place to put "odds & ends" functions that don't > necessarily fit in any controllers, but may apply to them all? > > For example I hav

Best place to put "odds & ends" functions?

2007-09-06 Thread [EMAIL PROTECTED]
Where's the best place to put "odds & ends" functions that don't necessarily fit in any controllers, but may apply to them all? For example I have a function that takes an array from a findAll, and returns an array of the primary ids. Where should this go? app_controller