I have a backbone.js model
I also have a php form with a particular string stored in a $_GET[value]
. I need to pass that string to a backbone model and update the values in the backbone variable with the value from the php variable.
I have a backbone.js model
I also have a php form with a particular string stored in a $_GET[value]
. I need to pass that string to a backbone model and update the values in the backbone variable with the value from the php variable.
The value of your PHP Variable needs to be in your rendered page somewhere so that you can put it into a backbone model.
If you're trying to store the value via backbone.sync
, that's a different story.
Posting some of your own code will probably get you a more direct answer.