Esempio n. 1
0
 public function makeDropDown()
 {
     $model = TblSlidertype::find()->all();
     foreach ($model as $m) {
         $data[$m->id] = $m->title;
     }
     return $data;
 }
Esempio n. 2
0
 private function typedelete($id)
 {
     $model = \app\models\TblSlidertype::findOne($id);
     $model->delete();
     //return $this->redirect(['index']);
 }