Disable CSS stylesheet for a specific action in Symfony

后端 未结 3 1656
深忆病人
深忆病人 2021-01-05 09:32

Is there any way of disabling a stylesheet in view.yml for a specific action in Symfony?

For example I\'ve got this in my view.yml:

default:
  style         


        
3条回答
  •  广开言路
    2021-01-05 09:59

    to remove for example, unecessary /sfDoctrinePlugin/css/default.css, now you can overwrite the backend styles with your own!

    maybe put it into yout layout.php:

    getResponse()->removeStylesheet('/sfDoctrinePlugin/css/global.css'); ?>
    
    getResponse()->removeStylesheet('/sfDoctrinePlugin/css/default.css'); ?>
    

提交回复
热议问题