Removing stylesheets in symfony 1
Today I encountered a situation I've not encountered before: I have a project-wide stylesheet that should be used for everything, except one specific module that has different (brandable) stylesheets. I created a view.yml for this module with a different stylesheet, but of course the configuration files are merged so it doesn't actually overwrite the main stylesheet file. And this wasn't really what I needed here.
So I started searching around, and quickly found the removeStylesheet() method in the sfWebResponse class. This didn't work however, when I called this in my controller. Googling around a bit more I found this mailinglist discussion where Alexander Deruwe describes exactly what I need to do! Instead of removing it programmatically in the controller, I can just do it in my module view.yml file. So my view.yml of the module now looks like this:
stylesheets: [-main, formdefault.css]
By negating a stylesheet that was added on a higher level of configuration, it is removed again from the set of stylesheets, and not added to the actual response. Thanks Alexander!
April 27, 2011 - tags: symfony, stylesheets, php, howto
Hair Extensions Bethesda md
: This is very intriguing website. my partner and i adored to learn this kind of.. many thanks regarding revealing these records.
mp3 players orange
: but this crosley record player also includes a par (portable audio ready) hookup for mp3 players, and an analog am/fm radio for more listening enjoyment. hello kitty kt2028a stereo cd boombox with cassette player/recorder and am/fm radio. 0.9" lcd bluetooth car kit mp3 player fm transmitter $21. playable file formats.
cereal box purse organizer
: disclaimer: the information on this hub page does not constitute medical, legal, commercial, product, and/or service advice or endorsement of any vendor, supplier and/or brand, and does not necessarily reflect the opinion of the author. the tv dinner was first created in 1951, just in time to sit and eat while you watched that new, incredible invention -- the tv. .serials.[espaã±ol][rge][www.espaemule.com].zip now, there are simply no alternatives to fruity pebbles…except perhaps a bowl of soggy co-co puffs.
general mills individual cereal boxes
: (con maní & sésamo). there will be plenty of time later for teaching and discipline but for now that precious infant is innocent and deserving of all the tenderness his or her parents can give. insofta cover commander multimedia & design - illustration, demo packmage cad software is a free packaging design software for corrugated cardboard and folding the symposium collected some 150 delegates, from more than 20 countries, mostly from europe.