Example #1
0
        $view_page = "fundraisers";
        include_once ROOT_PATH . "search/view/container.php";
    }
    public function projects()
    {
        $view_page = "projects";
        include_once ROOT_PATH . "search/view/container.php";
    }
}
$searchcontroller = new SearchController();
if (isset($_GET['m'])) {
    $method = $_GET['m'];
} else {
    $method = "index";
}
switch ($method) {
    case "index":
        $searchcontroller->index();
        break;
    case "fundraisers":
        $searchcontroller->fundraisers();
        break;
    case "projects":
        $searchcontroller->projects();
        break;
    case "requirements":
        $searchcontroller->requirements();
    default:
        $searchcontroller->index();
        break;
}