Each bundle has it’s own public directory to store assets (css/js/images).
Now what is the best place for assets used in app\Resources\views\base.htl.twg?
How dose Symfony understand to populate them to public?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
usually the assets of templates available in the
app/Resources/viewdirectory(like base.html.twig) are placed directly in a subdirectory of the web root likeweb/includes/css/main.cssand called withasset('includes/css/main.css').If you don’t like it, you can easily create your own bundle to store the app assets.