Answer the question
In order to leave comments, you need to log in
How to scan a folder using a twig file?
Hello
The goal is this, I need to scan a folder, find all the files in it - pictures and display them. The question is how to do it using twig ?
I searched how to do this and they say that I need to call the php file in twig but I don't know how to do it.
Plus, it seems to me that you can try to use some js for this and then pass the parameters.
The question is how to do it and if possible with a link or an example.
Sincerely, Vladimir Stromov
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