I have a partial (partial/article.blade.php) .. i make ajax request to this controller action .. so i want to return this partial in response to this ajax request .. then append the result by javascript...
i'm using this code in my controller action :
return View::make('partial.article')
->with('articles',$articles);
In response i got this result :
<div class="text-center">
</div>
partial.article :
@foreach ($articles as $article)
@include('partial.articleBlock')
@endforeach
<div class="text-center">
</div>
What's the wrong with my code please ? Thank you .
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hT7NQu
via IFTTT
Aucun commentaire:
Enregistrer un commentaire