Templating in Laravel

kidbuu

New Member
I'm trying to get my default template working with Laravel. I'm coming from Codeigniter and Phil Sturgeon's template system so I'm trying to do it in a similar way. Can anyone help me with what I'm missing/doing wrong? Thanks!\[code\]//default.blade.php (located in layouts/default)<html> <title> {{$title}}</title> <body> {{$content}} </body></html>//end default.blade.php//home.blade.php (index view including header and footer partials)@layout('layouts.default')@include('partials.header')//code@include('partials.footer')//end home//routes.php (mapping route to home controller) Route::controller( 'home' );//end//home.php (controller)<?phpclass Home_Controller extends Base_Controller {public $layout = 'layouts.default';public function action_index(){ $this->layout->title = 'title'; $this->layout->content = View::make( 'home' );}}//end\[/code\]
 
Top