banki.test/controllers/ListController.php

28 lines
563 B
PHP
Raw Normal View History

2024-08-20 06:27:17 +02:00
<?php
namespace app\controllers;
use app\models\Parameter;
use app\models\ParameterSearch;
use yii\data\ActiveDataProvider;
use yii\web\Request;
class ListController extends \yii\web\Controller
{
public function actionIndex(Request $request)
{
$searchModel = new ParameterSearch();
$dataProvider = $searchModel->search($request->queryParams);
return $this->render(
'index',
[
'provider' => $dataProvider,
'searchModel' => $searchModel,
]
);
}
}