Answer the question
In order to leave comments, you need to log in
How to get string representation (laravel 4.2)?
Please tell me how in laravele 4.2. Is it possible to get the result of the view execution as a string (html code) from the controller? To respond to an ajax request.
Answer the question
In order to leave comments, you need to log in
$view = View::make('master', ['key' => 'value']);
$html = $view->render();
Лучше так не делать.
Передавайте данные, а не html.
https://laravel.com/docs/4.2/responses
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question