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