Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionAjax()
- {
- $request=Yii::$app->request;
- $getModel=$request->get('models');
- if ($request->isAjax && $getModel)
- {
- $ajaxModel=str_replace("/admin/","",$getModel);
- Yii::debug($ajaxModel,'Ajax Model');
- /*
- * Todo:Сформировать экшен
- * */
- }
- else
- {
- throw new NotFoundHttpException('Noop! Тебе сюда незя!');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement