diff --git a/backend/controllers/PageController-i18n.php b/backend/controllers/PageController-i18n.php deleted file mode 100644 index 1862e04..0000000 --- a/backend/controllers/PageController-i18n.php +++ /dev/null @@ -1,121 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['post'], - ], - ], - ]; - } - - /** - * Lists all Page models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new SearchPage(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - ]); - } - - /** - * Displays a single Page model. - * @param integer $id - * @return mixed - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new Page model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new Page(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect(['view', 'id' => $model->page_id]); - } else { - return $this->render('create', [ - 'model' => $model, - ]); - } - } - - /** - * Updates an existing Page model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect(['view', 'id' => $model->page_id]); - } else { - return $this->render('update', [ - 'model' => $model, - ]); - } - } - - /** - * Deletes an existing Page model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - */ - public function actionDelete($id) - { - $this->findModel($id)->delete(); - - return $this->redirect(['index']); - } - - /** - * Finds the Page model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return Page the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = Page::findOne($id)) !== null) { - return $model; - } else { - throw new NotFoundHttpException('The requested page does not exist.'); - } - } -} diff --git a/backend/models/SearchPage-i18n.php b/backend/models/SearchPage-i18n.php deleted file mode 100644 index 945fcf7..0000000 --- a/backend/models/SearchPage-i18n.php +++ /dev/null @@ -1,68 +0,0 @@ -common/messages/1/field.php $query, - ]); - - $this->load($params); - - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - $query->andFilterWhere([ - 'page_id' => $this->page_id, - 'date_add' => $this->date_add, - 'template_id' => $this->template_id, - 'image_id' => $this->image_id, - 'show' => $this->show, - ]); - - return $dataProvider; - } -} diff --git a/backend/views/page-i18n/_form.php b/backend/views/page-i18n/_form.php deleted file mode 100644 index 328f429..0000000 --- a/backend/views/page-i18n/_form.php +++ /dev/null @@ -1,29 +0,0 @@ - - -
- - - - field($model, 'date_add')->textInput() ?> - - field($model, 'template_id')->textInput() ?> - - field($model, 'image_id')->textInput() ?> - - field($model, 'show')->textInput() ?> - -
- isNewRecord ? Yii::t('field', 'Create') : Yii::t('field', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> -
- - - -
diff --git a/backend/views/page-i18n/_search.php b/backend/views/page-i18n/_search.php deleted file mode 100644 index d0725bf..0000000 --- a/backend/views/page-i18n/_search.php +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/backend/views/page-i18n/create.php b/backend/views/page-i18n/create.php deleted file mode 100644 index cd472cb..0000000 --- a/backend/views/page-i18n/create.php +++ /dev/null @@ -1,21 +0,0 @@ -title = Yii::t('field', 'Create Page'); -$this->params['breadcrumbs'][] = ['label' => Yii::t('field', 'Pages'), 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- -

title) ?>

- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/views/page-i18n/index.php b/backend/views/page-i18n/index.php deleted file mode 100644 index 6052290..0000000 --- a/backend/views/page-i18n/index.php +++ /dev/null @@ -1,38 +0,0 @@ -title = Yii::t('field', 'Pages'); -$this->params['breadcrumbs'][] = $this->title; -?> -
- -

title) ?>

- render('_search', ['model' => $searchModel]); ?> - -

- 'btn btn-success']) ?> -

- - $dataProvider, - 'filterModel' => $searchModel, - 'columns' => [ - ['class' => 'yii\grid\SerialColumn'], - - 'page_id', - 'date_add', - 'template_id', - 'image_id', - 'show', - - ['class' => 'yii\grid\ActionColumn'], - ], - ]); ?> - -
diff --git a/backend/views/page-i18n/update.php b/backend/views/page-i18n/update.php deleted file mode 100644 index 518e86d..0000000 --- a/backend/views/page-i18n/update.php +++ /dev/null @@ -1,23 +0,0 @@ -title = Yii::t('field', 'Update {modelClass}: ', [ - 'modelClass' => 'Page', -]) . ' ' . $model->page_id; -$this->params['breadcrumbs'][] = ['label' => Yii::t('field', 'Pages'), 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->page_id, 'url' => ['view', 'id' => $model->page_id]]; -$this->params['breadcrumbs'][] = Yii::t('field', 'Update'); -?> -
- -

title) ?>

- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/views/page-i18n/view.php b/backend/views/page-i18n/view.php deleted file mode 100644 index 2eefcd5..0000000 --- a/backend/views/page-i18n/view.php +++ /dev/null @@ -1,39 +0,0 @@ -title = $model->page_id; -$this->params['breadcrumbs'][] = ['label' => Yii::t('field', 'Pages'), 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- -

title) ?>

- -

- $model->page_id], ['class' => 'btn btn-primary']) ?> - $model->page_id], [ - 'class' => 'btn btn-danger', - 'data' => [ - 'confirm' => Yii::t('field', 'Are you sure you want to delete this item?'), - 'method' => 'post', - ], - ]) ?> -

- - $model, - 'attributes' => [ - 'page_id', - 'date_add', - 'template_id', - 'image_id', - 'show', - ], - ]) ?> - -
-- libgit2 0.21.4