Database interaction with codeigniter and backbone.js

I am trying to learn backbone.js to build a web application. This is my first time with a javascript framework, and I'm pretty confused about some things.

I have been developing in the coder for some time, so I have an understanding of the MVC architecture.

My question is how to get data from backbone.js in front of my codeigniter controller and store it in the database. for example, to implement a simple login / registration function with CI and trunk, as I should continue. If someone can direct me to a step, it will be great or point me to the right resource. Thanks.

PS: I know that I need to implement a REST api with my code, but I do not know how to do this? therefore, if someone could provide an example of a basic controller, that would be very helpful.

+4
source share
1 answer

Here's a tutorial on using the API mentioned in the answer above (by the author of the library itself) http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/

+1
source

Source: https://habr.com/ru/post/1398169/


All Articles