Set template variable [closed]

0

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?

    
asked by anonymous 23.02.2017 / 12:44

1 answer

1

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.

    
10.03.2017 / 15:03