开发者

Symfony: associating a stylesheet to a template of a plugin

开发者 https://www.devze.com 2022-12-25 02:46 出处:网络
i have this line below in fronte开发者_StackOverflownd/config/view.yml: stylesheets:[main.css] The rules of that file are applied to the templates of the modules of frontend, but no to the templates

i have this line below in fronte开发者_StackOverflownd/config/view.yml:

stylesheets: [main.css]

The rules of that file are applied to the templates of the modules of frontend, but no to the templates of sfDoctrineGuardPlugin.

Even if i write at the beginning of the template it doesn't work..

What should i do?

Javi


Ensure that your sfDoctrineGuardPlugin has a custom "sfGuardAuth" module in your front-end app. The stylesheet will then apply. Works for me without problems.

See "Customize sfGuardAuth module templates" here: http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin

0

精彩评论

暂无评论...
验证码 换一张
取 消