Ejemplo n.º 1
0
 public function action_portfolio($id = null)
 {
     is_null($id) and Response::redirect('employee');
     $employee = Model_Employee::get_employee($id);
     $data['employee'] = $employee;
     $portfolios = Model_Portfolio::get_portfolios($id);
     $data['portfolios'] = $portfolios;
     $this->theme->set_template('index');
     $this->theme->get_template()->set_global('provinces', Model_Province::get_provinces('th'));
     $this->theme->get_template()->set_global('current_menu', "Employees");
     $this->theme->get_template()->set_global('current_menu_desc', "จัดการผู้ใช้งานที่เป็นผู้หางานทั้งหมดในระบบ");
     $this->theme->get_template()->set('breadcrumb', array(array('title' => "Home", 'icon' => "fa-home", 'link' => Uri::create('home'), 'active' => false), array('title' => "Employees", 'icon' => "fa-users", 'link' => Uri::create('employee'), 'active' => false), array('title' => "Portfolios", 'icon' => "fa-picture-o", 'link' => "", 'active' => true)));
     $this->theme->set_partial('sidebar', 'common/sidebar');
     $this->theme->set_partial('content', 'employee/portfolio')->set($data);
 }