Skip to content

Commit

Permalink
Update docs for composers method.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 10, 2014
1 parent 09b7bcd commit 7c5df2c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ A view composer class should be defined like so:

}

Note that there is no convention on where composer classes may be stored. You are free to store them anywhere as long as they can be autoloaded using the directives in your `composer.json` file.
#### Defining Multiple Composers

You may use the `composers` method to register an group of composers at the same time:

View::composers(array(
'AdminComposer' => array('admin.index', 'admin.profile'),
'UserComposer' => 'user',
));

> **Note:** There is no convention on where composer classes may be stored. You are free to store them anywhere as long as they can be autoloaded using the directives in your `composer.json` file.
### View Creators

Expand Down

0 comments on commit 7c5df2c

Please sign in to comment.