$php app/console assets:install target [--symlink]
The Resource/public folder of the bundle is copied to the /web directory. Can the resource files under Resources/public be directly referenced in the template engine?
世界只因有你2017-05-16 16:48:01
For flexibility, the physical path of the bundle can be arbitrary. Under this premise, if the resource files in the bundle can be publicly accessed, it is equivalent to opening web access permissions for multiple directories, which is not only troublesome, but also unsafe. .
In addition, Symfony 2’s AsseticBundle can do much more (assetic:dump) than just copying files, such as: