A
A
Artem2016-07-08 12:20:51
Yii
Artem, 2016-07-08 12:20:51

How to connect yii2 to self-written system?

Hello!
At work, the site uses a handwritten system.
I connect yii2 to a third-party system, as it is written here:
https://github.com/samdark/yii2-cookbook/blob/mast...
then I connect the init file in the main index.php file of the handwritten system.
Yii starts to swear at the Get parameters of the handwriting system.

PHP Notice - yii\base\ErrorException
Undefined index: text
if (mb_detect_encoding($_GET['text']) && strpos($_SERVER["REQUEST_URI"] ,'call/?text') && strpos($_SERVER["REQUEST_URI "] ,'%CC%')){

I understand that I did not connect correctly? How to make him not swear at the code of the manuscript?
As I understand it, these are Notice and Warning type errors - can you turn them off?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Arutyunov, 2016-07-08
@beardedman

If you have a dev environment in yii, then this overrides error_reporting.
It's not worth just changing to a production environment, because in this case, serious errors will simply return 500 instead of a stack trace and detailed information about the error.
You can set the desired "level" for errors yourself via error_reporting .
But it is better to correct all notes so that there are no problems in the future.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question