コード例 #1
0
ファイル: TextBox.php プロジェクト: pyw5pkU9PcdW/COMP3421
 public function checkIsTextBoxByQuestionId($id)
 {
     if (TextBox::find()->where(['id' => $id])->exists() == 1) {
         return true;
     }
     return false;
 }
コード例 #2
0
 /**
  * Lists all TextBox models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => TextBox::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }