Guest User

Untitled

a guest
Dec 14th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <?php
  2.  
  3. namespace backendcontrollers;
  4.  
  5. use Yii;
  6. use commonmodelsUser;
  7. use backendmodulesownerOwnerSearch;
  8. use yiiwebController;
  9. use yiiwebNotFoundHttpException;
  10. use yiifiltersVerbFilter;
  11.  
  12. /**
  13. * OwnerController implements the CRUD actions for User model.
  14. */
  15. class OwnerController extends Controller
  16. {
  17. public function behaviors()
  18. {
  19. return [
  20. 'verbs' => [
  21. 'class' => VerbFilter::className(),
  22. 'actions' => [
  23. 'delete' => ['post'],
  24. ],
  25. ],
  26. ];
  27. }
  28.  
  29. /**
  30. * Lists all User models.
  31. * @return mixed
  32. */
  33. public function actionIndex()
  34. {
  35. $searchModel = new OwnerSearch();
  36. $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37.  
  38. return $this->render('index', [
  39. 'searchModel' => $searchModel,
  40. 'dataProvider' => $dataProvider,
  41. ]);
  42. }
Add Comment
Please, Sign In to add comment