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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -