I need to define a variable that will be displayed in the footer of all my pages, that is, in the Cake 3 template. Any ideas?
I need to define a variable that will be displayed in the footer of all my pages, that is, in the Cake 3 template. Any ideas?
You have to see the situation, there are several ways you can do this, one of them is to pass in the beforeRender or initialize the AppController, and set the variable there, so that all system views have access.