php - Laravel - Views -
i'm in process of transitioning using codeigniter more fun laravel. i'm learning use blade templating engine laravel. used able in ci render view html:
$this->load->view('about', $data, true);
after reading laravels documentation on views , articles on stackoverflow, can't figure out how accomplish laravel/blade.
my codeigniter skills bit rusted. if remember correctly line of code renders corresponding view , returns string.
the equivalent laravel this:
$string = view::make('about', $data)->render();
remember import view facade.
or alternatively can use helper function:
$string = view('about', $data)->render();
Comments
Post a Comment