Exemplo n.º 1
0
 public function getJob($req)
 {
     $cr = new CategoriesRepository();
     $categories = $cr->getAll();
     $jr = new JobsRepository();
     $job = $jr->getById($req->id);
     return $this->twig->render('job.html', compact('categories', 'job'));
 }
Exemplo n.º 2
0
 public function getEdit($req)
 {
     $jr = new JobsRepository();
     $job = $jr->getById($req->id);
     $cr = new CategoriesRepository();
     $categories = $cr->getAll();
     $ar = new ApplicationsRepository();
     $applications = $ar->getByJobId($req->id);
     return $this->twig->render('admin/jobs/edit.html', compact('job', 'categories', 'applications'));
 }
Exemplo n.º 3
0
 public function getEdit($req)
 {
     $cr = new CategoriesRepository();
     $category = $cr->getById($req->id);
     return $this->twig->render('admin/categories/edit.html', compact('category'));
 }