Пример #1
0
 /**
  * Lists all AppData models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => AppData::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }
Пример #2
0
 public function actionTos()
 {
     $tos_data = AppData::find()->where(['key' => 'tos'])->one();
     return $this->render('tos', ['tos_data' => $tos_data->getAttribute('value')]);
 }