samedi 4 juillet 2015

Ember Data Save PHP not receiving data

Ember model:

App.Task = DS.Model.extend({
            description: DS.attr('string'),
            duration: DS.attr('string'),
            company:DS.attr('string'),
            project:DS.attr('string')
        });

Then in my controller I am saving the new instance of the Object:

task = this.store.createRecord('task',{
                        description:'ff',
                        duration:'zz',
                        company: 'aa',
                        project: 'dd'
                    });

And attempting to save it:

task.save().then(console.log('saving')).catch(console.log('errr'));

This hits right controller in my laravel code, but I tried to

die(var_dump($_POST))

and to

die(var_dump($_REQUEST))

But the data is never there. How can I get it?

Thanks




Aucun commentaire:

Enregistrer un commentaire