public function listAction() { if ($this->request->hasArgument('search')) { $search = $this->request->getArgument('search'); } $limit = $this->settings['blog']['max'] ?: NULL; $this->view->assign('blogs', $this->blogRepository->findSearchForm($search, $limit)); $this->view->assign('search', $search); }