Non-database data sources

Is there a standard/accepted approach to reading data from sources other than a relational database using Yii? For example, flat file, Google Maps, etc. Is it the intention of the developers that people will extend CModel to accomplish this sort of thing? Any examples in current projects would be handy.

Yes, you should extend CModel class. You can name methods like AR: find, findAll, save etc. And of course you can use all standard features of CModel (validation, events, etc).

Thanks Andy. If I come up with anything useful I’ll post an example. In the meantime, if anyone has already done something similar it’d be interesting to see sample code.