/**
  * Lists all deleted City models.
  * @return mixed
  */
 public function actionDeleted()
 {
     if (CityAccess::allowDeleted() == FALSE) {
         throw CityAccess::exception('deleted');
     }
     $searchModel = new CitySearch();
     $dataProvider = $searchModel->searchDeleted($_GET);
     Tabs::clearLocalStorage();
     Url::remember();
     \Yii::$app->session['__crudReturnUrl'] = null;
     return $this->render('deleted', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
Exemple #2
0
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="city-search">

	<?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

	<?php 
echo $form->field($model, 'id');
?>

	<?php 
echo $form->field($model, 'recordStatus')->dropDownList(CitySearch::optsRecordStatus());
?>

	<?php 
echo $form->field($model, 'number');
?>

	<?php 
echo $form->field($model, 'name');
?>

	<?php 
echo $form->field($model, 'abbreviation');
?>

	<?php 
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="city-search">

	<?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

	<?php 
echo $form->field($model, 'id');
?>

	<?php 
echo $form->field($model, 'status')->dropDownList(CitySearch::optsstatus());
?>

	<?php 
echo $form->field($model, 'number');
?>

	<?php 
echo $form->field($model, 'name');
?>

	<?php 
echo $form->field($model, 'abbreviation');
?>

	<?php