Just installed laravel 4 trying it out seeing if it has some better features than codeigniter. Just new to laravel 4
Query:
Can I load a controller as a data array
or do something like this $data[header] => $this->load->controller(common/header);
in view file can I echo data
<?php echo $header ;?> <div id="content"> </div> <?php echo $footer ;?>smth like this...
public function test(){
return View::make('yourView',array('header'=>'blalalala'));
}
here's a simple step doing dynamic layout : here
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community