how to change ‘item’ on Phil Sturgeon’s RESTful API
- by sam
<xml>
-
<item>
<userid>1</userid>
<username>example</username>
<useremail>[email protected]</useremail>
</item>
</xml>
hi all,im new to CI,just want to know how to change <item> to something else.maybe <user>
here is my model
if($query->num_rows()>0){
foreach($query->result()as $row){
$data[] = $row;
}
return $data;
}
thanks