Пример #1
0
 public function lecturer_view_edit()
 {
     $__viewData = array();
     $__viewData['Data']['TableHeader'] = Lecturer::$DISPLAY_HEADER;
     $__viewData['Data']['TableContent'] = MyDataParser::build_table_view(Lecturer::get_list(), Lecturer::$DISPLAY_HEADER);
     $this->template->__yield__ = View::forge('staff/lecturer_edit', $__viewData);
 }
Пример #2
0
 public function faculty_make_add($data)
 {
     $retData = Faculty::add($data);
     $__viewData = array();
     $__viewData['Data']['TableHeader'] = Faculty::$HEADER;
     $__viewData['Data']['TableContent'] = MyDataParser::build_table_view(Faculty::get_list(), Faculty::$HEADER);
     $__viewData['Data']['IsRenderAfterPost'] = true;
     $__viewData['Data']['Error'] = $retData;
     $this->template->__yield__ = View::forge('department/faculty', $__viewData);
 }