/** * Search * @param type $keyword * @return type array */ public function search($keyword) { if (isset($keyword)) { $data = array('ticket_number' => Tickets::search($keyword)); return $data; } else { return "no results"; } }