Update tutorial-yii-integration.md (#17153)

This commit is contained in:
sabi1981
2019-02-22 13:47:06 +01:00
committed by Alexander Makarov
parent bf73b9e80f
commit 2460e7f7ba

View File

@ -160,6 +160,9 @@ class Yii extends \yii\BaseYii
// copy-paste the code from YiiBase (1.x) here
}
spl_autoload_unregister(array('YiiBase','autoload'));
spl_autoload_register(array('Yii','autoload'));
Yii::$classMap = include($yii2path . '/classes.php');
// register Yii 2 autoloader via Yii 1
Yii::registerAutoloader(['yii\BaseYii', 'autoload']);