use a condition within the action and redirect setting a flash message to
show feedback to user
 - S





On 29 March 2011 13:37, Michael Iv <[email protected]> wrote:

> Hi all. I am  an noobe here.I want to be able to cancel an action before
> its execution.The scenario is as follows. I have a navifgation bar. When I
> press a link I check if the current URL is the same as that of the link.If
> it is I want to prevent the controller to execute the action which renders
> the view for that link.
>
> Thanks.
>
>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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