Example #1
0
 /**
  * @param string|NULL $q
  */
 public function renderDefault($q = NULL)
 {
     $resultSet = $this->searchDirector->search($q);
     $this->template->results = $resultSet;
     $this->template->suggestions = [];
     $this->template->search = $q;
 }
Example #2
0
 /**
  * @param string|NULL $slug
  */
 public function renderDefault($slug)
 {
     $this->template->search = $this->search;
     $this->template->results = $this->searchDirector->search($this->search);
 }