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