S
S
suhuxa12018-03-22 20:30:51
Web development
suhuxa1, 2018-03-22 20:30:51

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

1 answer(s)
I
Ilya, 2018-03-22
Hrebet @hrebet

slimphp/PHP-Vi: Template Variables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question