public function index() { $model = new Fellow_Model(); $mentor_model = new Mentor_Model(); $mentors = $mentor_model->get_mentors_child(get_current_user_id()); $fellows = $model->get_fellows(get_current_user_id()); if (empty($fellows)) { $fellows = array(); } $data['fellows'] = $fellows; if (empty($mentors)) { $this->template->title("Avanti Fellows - Mentor Platform"); $this->template->build('mentor_fellows_view', $data); } else { $data['mentors'] = $mentors; $this->template->title("Avanti Fellows - Mentor Platform"); $this->template->build('team_view', $data); } }
public function test_mentor_name() { $in = new Mentor_Model(); $in->get_mentors_child(get_current_user_id()); }