Browse Source

updating documentation.

Taylor Otwell 12 years ago
parent
commit
92e482de0d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      laravel/documentation/views/home.md

+ 7 - 0
laravel/documentation/views/home.md

@@ -160,6 +160,13 @@ Each time a view is created, its "composer" event will be fired. You can listen
 
 
 Now each time the "home" view is created, an instance of the View will be passed to the registered Closure, allowing you to prepare the view however you wish.
 Now each time the "home" view is created, an instance of the View will be passed to the registered Closure, allowing you to prepare the view however you wish.
 
 
+#### Register a composer that handles multiple views:
+
+	View::composer(array('home', 'profile'), function($view)
+	{
+		//
+	});
+
 > **Note:** A view can have more than one composer. Go wild!
 > **Note:** A view can have more than one composer. Go wild!
 
 
 <a name="redirects"></a>
 <a name="redirects"></a>