/** * @throws \yii\base\InvalidConfigException */ public function init() { parent::init(); $this->dataFile = __DIR__ . '/data/records.php'; }