Tuesday, March 29, 2011

Re: canceling action execution in the controller.

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 <explomaster@gmail.com> 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
cake-php+unsubscribe@googlegroups.com 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: