Saturday, 15 May 2010

php - Laravel template - passing data to layout -



php - Laravel template - passing data to layout -

how pass info layout file? can access passed info on content page not on layout file.

public function get_index($name){ homecoming view::make('widget.'.$name) ->with("title", ucwords($name).' ‹ document management system'); }

use

view::share('data', $data);

on before filter or in __construct of base_controller.

php laravel

No comments:

Post a Comment