dimanche 26 juin 2016

How to retrieve html from view object without rendering to the browse

I have 2 separate partials views, I want to get the html with the given data from those partials views and has to send a json resonse from controller

// here is the sudo code

public function myControllerFunction(){

 $response['products'] = view('search._partials.product_box')->with('data', $data['products]);
 $response['filters'] = view('search._partials.facet_filters')->with('data', $data['filters]);
return $response;

}

I want to achieve some thing like this, It is possible with plain php code but with this framework is there any way to achieve this



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire