public function searchProject($expression, $searchKeyword) { try { if (!isset($searchKeyword)) { $searchKeyword = ""; } $searchKeyword = "%" . $searchKeyword . "%"; $project = Project::searchProject($searchKeyword, $expression); // possible user loading method echo AppUtil::getReturnStatus("Successful", $project); } catch (Exception $e) { echo AppUtil::getReturnStatus("Unsuccessful", $e->getMessage()); } }