Exemple #1
0
 public function search($what)
 {
     if (isset($_POST['searchstring'])) {
         $this->loadTemplate();
         $controller = new SearchController();
         switch ($what) {
             case 'autor':
                 $controller->getAutorSearchResults();
                 break;
             case 'book':
                 $controller->getBookSearchResults();
                 break;
         }
     }
 }