public function select_incident($id) { //echo $id; $incident = new Incident(); $result = $incident->select_incident($id); if ($result) { return View::make('incident')->with('incident', $result); } else { return "data tidak ada"; } }