Ok .. I understand you can call it from the view .. but if you look 4
posts above, my goal is to call it inside a controller, like you would
a flash():

function checkValid($whatever)
{
     if (validation logic)
           $this->modal('Success!', 'This is valid!', '/valid');
     else
           $this->modal('FAIL!', 'You are a failure', '/fail');
}

That's the part I am missing .. how do you trigger the action from the
controller?


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