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);
     }
 }
 private function Test_Fellow_Model()
 {
     $fellow_model = new Fellow_Model();
     $fellows = $fellow_model->get_fellows_for_mentor(3);
     $this->unit->run(empty($fellows), false, 'Fetch Fellows');
 }