M
M
Messi2018-02-03 21:26:54
Yii
Messi, 2018-02-03 21:26:54

How to transfer data correctly?

I have actionNew($id, $name) in my controller. I want to make an ajax request to it, as I understand it, it takes parameters, so this is a get request, but only Post is allowed in behaviors.
How to make a request? And how in general in Yii in the controller to access the passed data in the request?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question