public function init()
 {
     parent::init();
     $this->category = new CategoryDisease();
     $this->disease = new Disease();
     $this->department = new Department();
 }
 public function __construct($id, Module $module, array $config = [])
 {
     parent::__construct($id, $module, $config);
     $this->disease = new Disease();
     $this->symptom = new Symptom();
     $this->department = new Department();
     $this->part = new Part();
 }
 function init()
 {
     parent::init();
     //        $this->setLayout('main');
     //        $this->disableLayout();
     $this->path = \Yii::$app->params['uploadPath']['symptom'];
     $this->request = \Yii::$app->request;
     $this->symptom = new Symptom();
     $this->symptomContent = new SymptomContent();
     $this->relate = new Relate();
     $this->depart = new Department();
     $this->disease = new Disease();
 }
 function init()
 {
     parent::init();
     $this->path = \Yii::$app->params['uploadPath']['article'];
     $this->article = new Article();
 }
예제 #5
0
 public function init()
 {
     parent::init();
     $this->setLayout('//bootstrapmaster');
 }
예제 #6
0
 public function init()
 {
     parent::init();
     $this->part = new Part();
 }
예제 #7
0
 public function init()
 {
     parent::init();
 }