0
I’d like to know how to call a method from a Component I created in Cakephp 3 on all controllers, as well as the Auth that checks whether the user is logged in or not on all pages (controllers). But I also want to be able to call another method from this one on some controllers on beforeFilter before it runs the default method that always var be executed.
Example:
On some controllers on beforeFilter I allow some of his actions with the $this->Auth->allow('add') and so when the Authcomponent will check whether the User is logged in or not it ignores why the page was set as allowed, I need to do basically the same with the Component I created.
I want to perform certain standard action on all controllers, but be able to set some settings on beforeFilter of any controller before the default action determinity is executed.