Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 public function getIndex()
 {
     $jr = new JobsRepository();
     $jobs = $jr->getAll();
     return $this->twig->render('admin/jobs/index.html', compact('jobs'));
 }