Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No styles or images in initial Symfony2 installation?

I've been playing with Symfony for a bit but for some reason now, whenever I setup a new project the default styles and images are no longer being loaded. What is going on?

Followed the installation steps precisely as per the instructions. I used the composer.phar method and have set permissions correctly.

Here is a screenshot of my unstyled demo page:

enter image description here

like image 407
Anonymous Avatar asked Jan 30 '26 16:01

Anonymous


1 Answers

If you followed the instrunctions 1 by 1, your assets are not installed...

you can do this, by a php composer.phar update when you added the mentioned extras to the composer.json

"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "symfony-assets-install": "symlink"
}

or manually by

php app/console assets:install web
like image 192
Flask Avatar answered Feb 02 '26 07:02

Flask



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!