how to change ‘item’ on Phil Sturgeon’s RESTful API
Posted
by sam
on Stack Overflow
See other posts from Stack Overflow
or by sam
Published on 2010-05-28T23:21:22Z
Indexed on
2010/05/29
2:02 UTC
Read the original article
Hit count: 813
php
|codeigniter
<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
© Stack Overflow or respective owner