Answer the question
In order to leave comments, you need to log in
Slim php framework - how to add an array to all view templates?
Hey!
There is an array with information. This information comes out in the header. Well, exit 2, either pass this array to each route, or pass it once for view. But how is it done? In Laravel through a service provider. And I didn't see anything like that. I saw the container, but if I understood correctly, I still need to add information to each route.
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question