mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Update tutorial-yii-integration.md (#17153)
This commit is contained in:
committed by
Alexander Makarov
parent
bf73b9e80f
commit
2460e7f7ba
@ -160,6 +160,9 @@ class Yii extends \yii\BaseYii
|
|||||||
// copy-paste the code from YiiBase (1.x) here
|
// 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');
|
Yii::$classMap = include($yii2path . '/classes.php');
|
||||||
// register Yii 2 autoloader via Yii 1
|
// register Yii 2 autoloader via Yii 1
|
||||||
Yii::registerAutoloader(['yii\BaseYii', 'autoload']);
|
Yii::registerAutoloader(['yii\BaseYii', 'autoload']);
|
||||||
|
|||||||
Reference in New Issue
Block a user