Hi Mariano

I have hit a snag with the approach below.  In most cases I do not need 
to set the $uses array.  If I need to call a related model then I will 
do the following (in OperationsController for instance):

   $this->Operation->OperationType->generateList()

The only time I would set $uses is if I wanted a completely un-related 
model.  Since switching to this approach I have had a lot less trouble 
with forgetting to include required models.

Can you suggest any other way perhaps to make the list globally 
available to models?

Regards,
Langdon


> Navigate the $uses array and set it:
> 
> foreach($this->uses as $model)
> {
>       if (isset($this->$model))
>       {
>               $this->$model->dataAcoList = $dataAcoList;
>       }
> }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to