Sorry for my stupid question, I'm realy newbie with Yii, but I don'n know how to import
Call to undefined method Yii::import()
CArrayDataProvider is replaced with
ArrayDataProvider in Yii2. For using it you just need to include it in a file. Put the below in the beginning of your file.
For more details refer to this link