route==$route['webapi/app/(:any)/?(:any)/?(:any)/?(:any)'] = 'api/index'; contrloer=<?php /** * create all api details..... ** * www.domain.com/webapi/app/top-header ** * */ error_reporting(0); header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: *"); class Api extends MY_Controller{ var $status="error"; var $msg="No found data."; var $data="No found data."; public function index(){ $type = $this->uri->segment(3); witch($type){ case 'invoices': $this->data=$this->get_invoices(); break; case 'get_invoices_by_id': $this->data=$this->get_invoices_by_id(); break; case 'register': $this->data=$this->register(); break; } $set['status']=$this->status; $set['msg']=$this->msg; $set['data']=$this->data; echo json_encode($set,JSON_ERROR_CTRL_CHAR); } /* public function register(){ $id=$this->input-...
EK TABLE DATA MAI CONDITION DI HAI KI AGR CONDITION TRUE HOTI HAI TO MTLB MAIL SEND HOTI HAI AGR TO FIELD COLOR GREEN(SUCCESS) HO JAE NAHI TO ORANGE(WARNING) RAHE...... <td> <?php if($item->send_mail == "1"): ?> <label class="label label-success"> Success </label> <...
Comments
Post a Comment