Nanthini Muniapan
Nanthini Muniapan

Reputation: 456

Symfony's stylesheet not loading

I am trying out askeet tutorial for using symfony 1.1.9.

So far it has been fine except for the sytlesheet is not loading, please have a look at the attached image.

The page should look something like this. Maybe this is a simple tweak and I will appreciate any hint in the right direction.

Upvotes: 0

Views: 915

Answers (1)

j0k
j0k

Reputation: 22756

First, if you have to choose symfony, right now, for a new development, you should better consider using the version 2 which is the last one and the most up to date.


My guess is that your forgot to define the /sf alias inside your Apache configuration.

Your vhost must look like this one:

<VirtualHost 127.0.0.7:80>
  DocumentRoot "/home/sfprojects/jobeet/web"
  DirectoryIndex index.php
  <Directory "/home/sfprojects/jobeet/web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
  <Directory "/home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

(I took it from the documentation)

See the /sf alias? It goes directly to the asset folder of symfony wich will display default image, js and css for common page (the one you tried to load), toolbar, 404, etc ..

Upvotes: 1

Related Questions