R
R
roxik2016-08-13 17:08:38
Yii
roxik, 2016-08-13 17:08:38

Yii 2. How to implement ajax request and response in json?

Hello!

I now have an ajax request on the site to api.php and with POST. The response returns a json response of the form:
{error: 0, html: ""}

How is this implemented in Yii 2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
holfza, 2016-08-13
@holfza

https://github.com/samdark/yii2-cookbook/blob/mast...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question