Jon,
On Sep 22, 6:27 pm, Jon Bennett <[email protected]> wrote:
> Hi kdubya,
>
<snip>
> Sounds like a perfect candidate for a behaviour to me.
<snip>
I had attempted to go down this behavior path but it seemed much more
complicated than necessary. Your example looks pretty complete so I'll
give it a try (may as well try to learn something new, huh?). There
was much left out of the Behavior section of the Cake book that
tripped me up.
I have a couple of questions about your example:
1) In the code below, 'body' would be the field name (or list of
names) that the behavior applies to, right?
var $actsAs = array(
'Cleanup'=>array('body')
);
2) Throughout your example you use [$Model->alias]. Is the 'alias"
part functionality built-in to behaviors that I just need to follow
the convention?
Thanks for your help,
Ken
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---