jeudi 28 janvier 2016

Flash session not found with Angular

I am working with angular and laravel. I want to use flash session of Laravel in ng-view. I dont know how to do it. I have an error "Class session not found".

I import Angular.

<script type="text/javascript" src="/public/assets/js/angular.min.js"></script>

I use routeProvider to load views

Example:

when('/registro', {
    templateUrl: '/public/templates/registro/index.php'
 })

In the view

<?php echo Session::get('data') ?>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire