Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : new

$
0
0
We don't have anything that will walk you through JMVC + php / mysql.

However, if you can figure out how to create a REST service with php + mysql ( maybe with: http://net.tutsplus.com/tutorials/other/a-beginners-introduction-to-http-and-rest/ )

Throwing CanJS on top of it will be easy. That tutorial shows how to create a clients serivce.  You would create a model to connect to it like:


Client = can.Model.extend({
  id: "name",
  findAll: "/clients/"
  findOne: "/clients/{name}",
  destroy: "/clients/{id}",
  
},{})
Client.findAll({}, function(clients){

})

Actually, that tutorial uses PUT to create an item when it should be using POST.

Anyway, if you can create a rest service, let us know what it looks like and we will show you how to create a model that connects to it.


Viewing all articles
Browse latest Browse all 3491

Trending Articles