leonsuke

Model

Jan 24th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public function tips_trick_detail($id) {
  2. $url = api_url() . "messages/tips_trik";
  3. $param = array("action" => "");
  4. $param['params'] = array("tips_id" => $id);
  5.  
  6. $result= _runApi($url, $param, FALSE);
  7. echo "<pre>";
  8. print_r($result);
  9. echo "</pre>";
  10. // print_r($param);
  11. return isset($result['data']['tips'])?$result['data']['tips']:array();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment