Advertisement
Guest User

Untitled

a guest
May 27th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public function actionAjax()
  2. {
  3. $request=Yii::$app->request;
  4. $getModel=$request->get('models');
  5. if ($request->isAjax && $getModel)
  6. {
  7. $ajaxModel=str_replace("/admin/","",$getModel);
  8. Yii::debug($ajaxModel,'Ajax Model');
  9. /*
  10. * Todo:Сформировать экшен
  11. * */
  12.  
  13. }
  14. else
  15. {
  16. throw new NotFoundHttpException('Noop! Тебе сюда незя!');
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement