Hi,

I am new to Symfony 2.0, I want to load style.css from my
layout.html.twig, then I do the following work:
1. put my layout.html.twig to
APP/src/Domix/CommonBundule/Resources/public/style.css
2. add the following code to layout.html.twig
  <link href="{{ asset('bundles/common/style.css?v=0.01') }}"
rel="stylesheet" type="text/css" />
3.visit my application via url:
http://localhost/~saharabear/domixin/app_dev.php/

Then, I find the style.css is not load, by viewing my resource, I got
the following generated by {{ asset('') }}
<link href="/~saharabear/domixin/bundles/common/style.css?v=0.01"
rel="stylesheet" type="text/css" />

I can not find what's the problem, is there something I miss?



Thanks!

http://domix.in
Protect and Track your life and work

Location:Room 807,QiLuRuanJianDaSha Qilu Software Park
        No. 1 Shunhua Rd High-Tech Development Zone
        Jinan, China 250101
Mobile: +86 15854103759

Haulyn Jason

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to