added module support!
This commit is contained in:
26
application/views/composers.php
Normal file
26
application/views/composers.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| View Composers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 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
|
||||
| footer partial each time the view is created.
|
||||
|
|
||||
| The composer will receive an instance of the view being created, and is
|
||||
| free to modify the view however you wish.
|
||||
|
|
||||
| For more information, check out: http://laravel.com/docs/start/views#composers
|
||||
|
|
||||
*/
|
||||
|
||||
'home/index' => function($view)
|
||||
{
|
||||
// Do anything you want to the view.
|
||||
},
|
||||
|
||||
);
|
||||
Reference in New Issue
Block a user