Example #1
0
 private function search()
 {
     if ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST['search'])) {
         $data = array();
         $data['searchQuery'] = $_POST['search'];
         $data["quotes"] = Quote::getQuotesearchQuery($_POST['search']);
         $data["seo"]["title"] = "Quotes!";
         $data["seo"]["description"] = "Met behulp van deze website kun je al jouw quotes beheren!";
         $view = new View();
         $view->render("index", $data);
     }
 }