Can you do a quick example Nate?  I am not following.  This is
something I would have done in coding as well.

On Oct 8, 10:46 am, "nate" <[EMAIL PROTECTED]> wrote:
> Also, why are you passing parameters to RequestHandler->isPost?  All it
> does is return true or false if the request method of the current
> request is POST.
>
> If you're looking to require a post request for a given set of actions,
> you need the Security component.  You can do the following in your
> controller:
>
> function beforeFilter() {
>     $this->Security->requirePost('action', 'action', 'action');
>
> }Also, it looks like you're doing a lot of unnecessary validation in
> your controller.  What you can do is add an alternate set of validation
> rules in your model, then add a separate model method to change the
> password, and use that to switch the validation rules to use the
> alternate.


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

Reply via email to