Exemple #1
0
 public function action_index()
 {
     list(, $userid) = \Auth::get_user_id();
     $data['jobs'] = \Model\Job::query()->related('users')->where('users.id', $userid)->get();
     $data['actions'] = ['back' => ['label' => 'Back', 'url' => '/']];
     $this->template->title = "My Favorite jobs";
     $this->template->content = View::forge('job/list.twig', $data);
 }
Exemple #2
0
 public function action_index()
 {
     $data['jobs'] = \Model\Job::query()->get();
     $this->template->title = "Jobs listing";
     $this->template->content = View::forge('index.twig', $data);
 }