public function action_postinfo() { if (\Input::method() != 'POST') { return false; } $post_id = \Input::post('post_id'); $data['postcount'] = \Model_Mpost::get_count_by_id($post_id); $content_type = array('Content-type' => 'application/json', 'SUCCESS' => 0); echo new \Response(json_encode($data), 200, $content_type); return false; }