Load The Data Of File In Model Activerecord

How can I use a php file that contains data (like fixtures) on specific ActiveRecord model?

The php file returns an array with records like a real database table

I don’t want to use a mysql or another database for this special case

This data are only for reading and is not necessarily related with other tables

Thanks

How can I use a php file that contains data (like fixtures) on specific ActiveRecord model?

The php file returns an array with records like a real database table

I don’t want to use a mysql or another database for this special case

This data are only for reading and is not necessarily related with other tables

Thanks

[color="#008000"]/* moved from "Yii 1.0.x Discussions" to "General Discussions for Yii 1.1.x", and merged */[/color]

Is it impossible for you to use the data as is?

I mean, reading it to an array and using it as an array.

I want to use simple AR queries (like findByPK) or sqlCommand with those data, so I prefer to reading like database records.

If there is a way to do that, please inform me

As far as I know, there’s no extensions in Yii for that kind of text based database.

I might be wrong, please google it for yourself. :)