That is the cascade configuration rule.
You can avoid loading some JS or CSS like this.
Lets say you have a app/frontend/config/view.yml file like this:
default:
stylesheets:[admin, default, global]
So, if you want not to laod a stylesheet for a module you should create a
config dir and a view.yml inside it, in the module dir.
for example, for my frontend I have a printable page (so the master layout
is not needed)
app/frontend/modules/myveryownmodule/config/view.yml
tokenSuccess:
has_layout: false
javascripts:[imprimir, jquery]
stylesheets:[-admin, -default, -global, print]
Where tokenSuccess is an action for the module; if you can see, you unload
the globals css with a -.
If you want not to load everything, you should use a -*
For example:
tokenSuccess:
has_layout: false
javascripts:[imprimir, jquery]
stylesheets:[-*, print]
Hope this help. Remember to read the official books. You will find the most
common answers for this kind of issues.
2010/12/20 Massimiliano Arione garak...@gmail.com
On 19 Dic, 21:45, Warringer warrin...@gmail.com wrote:
I have build myself a custom 404 error page according to the very
useful help on symfony-check.org.
Now I have the problem that my custom header adds the default CSS
spreadsheet to the rest of the CSS I have added.
That's a stylesheet, not a spreadsheet ;-)
Anyway, what is your question?
cheers
Massimiliano
--
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 users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
--
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 users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en