Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace backendcontrollers;
- use Yii;
- use commonmodelsUser;
- use backendmodulesownerOwnerSearch;
- use yiiwebController;
- use yiiwebNotFoundHttpException;
- use yiifiltersVerbFilter;
- /**
- * OwnerController implements the CRUD actions for User model.
- */
- class OwnerController extends Controller
- {
- public function behaviors()
- {
- return [
- 'verbs' => [
- 'class' => VerbFilter::className(),
- 'actions' => [
- 'delete' => ['post'],
- ],
- ],
- ];
- }
- /**
- * Lists all User models.
- * @return mixed
- */
- public function actionIndex()
- {
- $searchModel = new OwnerSearch();
- $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
- return $this->render('index', [
- 'searchModel' => $searchModel,
- 'dataProvider' => $dataProvider,
- ]);
- }
Add Comment
Please, Sign In to add comment