Hi,
i am CakePHP newbie and I have problem. In my register user area(model
User) I used beforeValidate, beforeSave, and afterSave functions. Body
of this functions I need only with action: register. For other actions
I don't need them, but when i use other actions they are used.
I tried:
 if (!isset($this->data['User']['id'])) {
// some code here which is used when id is not defninied - i.e.
actions: add, register
}

but i would sth. like:

if (controller['action'] == 'activate') {
 // do sth
} else if ...


is this possible?


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