示例#1
0
 /**
  * 名师风采
  */
 public function teacherAction($col_id)
 {
     //验证大学是否存在
     $model = new \College();
     $college = $model->getCollegeBasic($col_id);
     if (!$college) {
         $this->notFound();
     }
     $teacher = $model->getTeacher($col_id);
     //设置标题
     $this->tag->setTitle($college['col_name'] . "-51升学网");
     $web_desc = strip_tags($college['col_summary']);
     //引入css 和js
     $this->assets->addCss("fontend/css/org/teachers.css");
     $this->assets->addJs("fontend/js/org_base.js");
     $this->view->setVars(['college' => $college, 'teacher' => $teacher, 'web_desc' => $web_desc]);
 }