public function searchAdminPage($params) { $search = ''; if (isset($_POST['search'])) { $search = $_POST['search']; } if (isset($params['id'])) { $search = $params['id']; } if (empty($search)) { FoxFWKernel::loadrouter('index'); } $liste = $this->page->search($search); return $GLOBALS['Twig']->render(FoxFWKernel::getView('pages_listePage'), array('titre' => 'Recherche de "' . $search . '"', 'liste' => $liste)); }