php - Symfony2.7.1 fresh installation. Failed to load resource -


symfony2 developers:

recently, planning familiar symfony2, using api project. current version v2.7.1.

i have apache installed local environment. installation root directory is:

//localhost/symfony

so followed official guide install it. looks fine after installation. when view page in development environment (app_dev.php).

//localhost/symfony/web/app_dev.php

page content display expected, not styled. open console , find 404 response follows:

failed load resource

//localhost/symfony/web/bundles/framework/css/structure.css

//localhost/symfony/web/bundles/framework/css/body.css

//localhost/symfony/web/bundles/framework/css/exception.css

//localhost/symfony/web/app_dev.php

//localhost/symfony/web/bundles/framework/css/structure.css

//localhost/symfony/web/bundles/framework/css/body.css

//localhost/symfony/web/bundles/framework/css/exception.css

i looked project/web/bundles directory, found nothing inside 2 empty file.

framework , sensiodistribution.

fresh installation without config change. got problem. guys give explanation why occurs. otherwise didn't full package?

do miss files inside project/web/bundles?

if case in missed file. send me archive file on current version 2.7.1?

  1. if these files exists have problem url rewriting check .htaccess or configure host. can use command php app/console server:start , check there if works

  2. you can run composer install install necessary bundles , libraries , composer.json has defined postinstall commands.

  3. if use assetic can try run php app/console assetic:dump more on http://symfony.com/doc/current/cookbook/assetic/asset_management.html

  4. in symfony 2.6 have new asset manager read more on http://symfony.com/blog/new-in-symfony-2-6-smarter-assets-install-command

php app/console assets:install or php app/console assets:install --symlink

for symfony 3.x directory changed app bin commands are:

php bin/console assets:install or php bin/console assets:install --symlink


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -