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

Well i am new to canjs and any js wanted your help badly.

$
0
0
var emall = can.Model.extend({
   findAll: "GET/api.php/specialoffers",
   findOne: "GET/api/specialoffers/{sid}"

}, {})

can i hear create a model which will have all the api.php like 
Var q = '/api.php/',
and then 
var emall = can.Model.extend({
   findAll: "GET/specialoffers",
   findOne: "GET/specialoffers/{sid}"

}, {})


ANd also help me out on how to write the fixture and the control/ component for the same

Viewing all articles
Browse latest Browse all 3491

Trending Articles