$sf_response->addStyleSheet() dosen't work in SF 1.4?

前端 未结 3 678
时光取名叫无心
时光取名叫无心 2021-01-23 12:03

Does anyone know how to add stylesheets in a template with Symfony 1.4 ?

I have tried everything I can think of, from modifying frontend/config/view.yml to modifying the

3条回答
  •  囚心锁ツ
    2021-01-23 12:21

    $sf_context->getResponse()->addStylesheet('style.css')

    $sf_context->getResponse()->addJavascript('script.js')

提交回复
热议问题