Thanks for your answers. That's also how I understand this remark in the
cookbook.
But it could probably be clarified, because apparently the given sample
code may be a bit confusing for people not very confident with oop. It
seems that it leads some people to include a beforeFilter() method
Is this what you're referring to?
"Please also remember to call AppController’s callbacks within child
controller callbacks for best results"
It's just saying to call the parent callback IF you include a callback
in your controller.
On Tue, Dec 11, 2012 at 4:02 PM, alaxos wrote:
> While answeri
you can omit those methods if they dont do anything else except for calling
the parent
the cookbook merely offers examples on how you would do it if you needed it
so yes, from an oop point of view, pretty useless
Am Dienstag, 11. Dezember 2012 22:02:46 UTC+1 schrieb alaxos:
>
> While answering
While answering a recent question on stackoverflow (http://
stackoverflow.com/questions/13825073/always-call-a-function-in-
cakephp), I discovered that it seems to be recommended in the cookbook
to always override the AppController beforeFilter() in child
controllers (http://book.cakephp.org/2.0/en