Behavior beforeSave() callbacks are called before the Model's
beforeSave() callback.
On Apr 2, 12:43 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> I have and Event Model that hasMany Photos
>
> I am using an upload behaviour and wish to save photos in a directory by the
> event Slug
>
> the below code is in the photo model the actsAs infor is updated but the new
> information is ignored
>
> function beforeSave() {
> $this->actsAs['Upload']['src']['dir'].= '/' .
> $this->getEventSlug($this->data['Photo']['event_id']);
> return true;
> }
>
> how can I get this to work?
>
> - S
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---