Answer the question
In order to leave comments, you need to log in
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%')){
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question