Returning false (or true, for that matter) from beforeFilter does
nothing.

The start function in Dispatcher
(http://api.cakephp.org/dispatcher_8php-source.html#l00268) is where
beforeFilter is called.  Notice on line 284 that beforeFilter's return
value is ignored.

Also, in Dispatcher's _invoke function
(http://api.cakephp.org/dispatcher_8php-source.html#l00246) there
doesn't seem to be any way to prevent it from calling the controller
action.

Would it be reasonable to submit a feature request to have Dispatcher
not call the controller action if beforeFilter returns false?


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

Reply via email to