Thomas Triplet
6 Aug 2010, 7:41 AM
Hi,
Most MVCs, CodeIgniter in particular, are based on URI of the form http://base_url/controller/function/param1/param2/...
So instead of DELETE, PUT, GET requests, I'd the store to send request like this:
base_url/my_controller/create
base_url/my_controller/delete/5
base_url/my_controller/update/id/5/field/newFieldValue
base_url/my_controller/get/start/0/limit/50/queryField/fieldValue
I tried to setup the store's restful param to true, but it didn't help. Any suggestion?
Most MVCs, CodeIgniter in particular, are based on URI of the form http://base_url/controller/function/param1/param2/...
So instead of DELETE, PUT, GET requests, I'd the store to send request like this:
base_url/my_controller/create
base_url/my_controller/delete/5
base_url/my_controller/update/id/5/field/newFieldValue
base_url/my_controller/get/start/0/limit/50/queryField/fieldValue
I tried to setup the store's restful param to true, but it didn't help. Any suggestion?