public function getSearch($request) { $cr = new CategoriesRepository(); $categories = $cr->getAll(); $jr = new JobsRepository(); $jobs = $jr->getAll(); return $this->twig->render('search.html', compact('categories', 'jobs')); }
public function getIndex() { $jr = new JobsRepository(); $jobs = $jr->getAll(); return $this->twig->render('admin/jobs/index.html', compact('jobs')); }