@ -186,5 +186,25 @@ class infofix extends CI_Controller
}
function get_by_icid($ic_id)
{
$ic = $this->infoContents_model->get_ic_contents2($ic_id);
if ($ic) {
echo json_encode(
array(
'state' => 0,
'data' => $ic
)
);
} else {
'state' => -1,
'msg' => 'not content by ' . $ic_id
//end of infofix