A
A
Alexander Stepanov2018-04-04 12:22:35
Yii
Alexander Stepanov, 2018-04-04 12:22:35

Where does the response come from?

For no reason, one page turns into a tag that comes from nowhere.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
This is the nonsense generated at the top of the contact form page.
Why such miracles can occur? And where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-04-04
@Exebeche

> And where to dig?
Maybe in the controller for this page, there is something like:

Yii::$app->response->format = \yii\web\Response::FORMAT_RAW;
 Yii::$app->response->headers->add('Content-Type', 'text/xml');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question