In methods of controllers, there are usually many checks for "doing
the right thing".
For instance, I check if user is accessing the right data.

However, I'm wondering what is the best way to return or exit from
these methods when errors do occur. I've been using just simple return
statement, but is there anything that's more CakePHP-like and follow
the framework's design? or is simple return/exit statement good
enough?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to