Development

#3496 (Incorrect instructions to disable component slot per module)

You must first sign up to be able to contribute.

Ticket #3496 (new documentation)

Opened 4 days ago

Incorrect instructions to disable component slot per module

Reported by: G Mawr Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.0.14
Keywords: Cc:
Qualification: Unreviewed

Description

There is a mistake in the book, here: http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer#Component%20Slots

To disable a component slot for a given module, one is invited (in listing 7-43) to do this in the module's view.yml:

all:
  components:
    sidebar:  []

It doesn't work. The following does, though:

all:
  components:
    sidebar:

Curiously, this also works:

myActionSuccess:
  components:
    sidebar:  []

More information at http://www.symfony-project.org/forum/index.php/m/47946/?srch=view.yml+module+all%3A+components#msg_47946