I'm rather confused about something.

In Ch.7 of the book, an example is given on how to disable a component
slot for a module, if you have specified a default component for that
slot for the app:

all:
  components:
    sidebar:  []

This didn't work for me. It still retained the default setting,
nothing was overridden. I found this old ticket: 
http://trac.symfony-project.com/ticket/751
where Francois points out that there should be a space between the
brackets (even though the printed and online books still list it
without a space). I tried that, STILL didn't work.

I did find another message on the forum about this, with the only
solution being to specify a 'blank' action instead. This works, but is
pretty ugly. I'm shocked that more people haven't been having this
problem...

I found two things that worked:
1) omit the brackets and just leave the line blank, or specify any
string value (it's not used)
2) use "[ , ]"  (with spaces between brackets and the comma).

For some reason, when I use '[]', the default app config value is not
merged properly with the module config-- it's discarding the new empty
array, instead of overwriting the existing setting.

Here's my app's config/view.yml:

default:
  components:
    sidebar:      []
    menu:         [menu, view]

and my module's config/view.yml:

all:
  components:
    menu:         []

Can anyone else reproduce this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to