jeudi 5 janvier 2017

Render view in ajax request translate lang error

I have a partial (partial/article.blade.php) .. i make ajax request to this controller action and i return this view as response

i'm using this code in my controller action :

return View::make('partial.article')
        ->with('articles',$articles);

partial.article :


    @foreach ($articles as $article)
        $article->title               
    @endforeach

The problem is in the translated word he print it like that in view it doesn't inerpreat it .. but when i use the partial without ajax request it show the word translated correctly .



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2j884wq
via IFTTT

Aucun commentaire:

Enregistrer un commentaire