What command is used to add js/css/image files to symfony src/ and synchronize them to the web/ folder?
phpcn_u1582
phpcn_u1582 2017-05-16 16:46:04
0
2
530

Symfony src/bundle/Resource/public Add js/css/image file, what command is synchronized to the web/ folder?

I am not familiar with symfony. Now add the resource files in the src/ directory and web/.

phpcn_u1582
phpcn_u1582

reply all(2)
阿神
$ php app/console assetic:dump

For detailed documentation, see: http://symfony.com/doc/current/cookbo...

Friendly advice is to read the document thoroughly before writing code, which will be more efficient:)

EDIT:

assetic:dump is provided by Symfony's AsseticBundle (relying on kriswallsmith's Assetic): https://github.com/symfony/AsseticBun..., which has more functions, such as splicing files, compressing files, and image processing.

assets:install is provided by Symfony's FrameworkBundle: https://github.com/symfony/symfony/bl..., which is responsible for copying files to the public web directory (symlink can also be used under nix)

小葫芦

Create shortcuts to static resources in the /web directory

app/console assets:install web --symlink

Merge resource files (in prod mode)

app/console assetic:dump --env=prod
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template