Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
5b75546e
Commit
5b75546e
authored
Aug 09, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add better documentation to composers.php
parent
513c9c75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
composers.php
application/composers.php
+19
-6
No files found.
application/composers.php
View file @
5b75546e
...
@@ -8,21 +8,34 @@ return array(
...
@@ -8,21 +8,34 @@ return array(
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| Named views give you beautiful syntax when working with your views.
| Named views give you beautiful syntax when working with your views.
| After you have defined a name for a view, you can create an instance of
| that view using the expressive View::of dynamic method:
|
|
| return View::of_layout();
| Here's how to define a named view:
|
| 'home.index' => array('name' => 'home')
|
| Now, you can create an instance of that view using the expressive View::of
| dynamic method. Take a look at this example:
|
|
|
For more information, check out: http://laravel.com/docs/start/views#named-views
|
return View::of_layout();
|
|
| View composers provide a convenient way to add common elements to a view
| View composers provide a convenient way to add common elements to a view
| each time it is created. For example, you may wish to bind a header and
| each time it is created. For example, you may wish to bind a header and
| footer partial each time the view is created.
| footer partial each time the view is created.
|
|
| The composer will receive an instance of the view being created, and is
| The composer will receive an instance of the view being created, and is
| free to modify the view however you wish.
| free to modify the view however you wish. Here is how to define one:
|
| 'home.index' => function($view)
| {
| //
| }
|
| Of course, you may define a view name and a composer for a single view:
|
|
| For more information, check out: http://laravel.com/docs/start/views#composers
| 'home.index' => array('name' => 'home', function($view)
| {
| //
| })
|
|
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment