Create Model with DAO

Is there a way to create Model with DAO?

what do you mean by "create model with dao"? i think you can write model class with any db access technique. even file access.

THank for ur reply, Can you show an example.

I am new to Yii

It’s possible but chances are you will end up wasting your time by reinventing CActiveRecord. What’s the problem with CActiveRecord that keeps you from using it?

Welcome to yii

Example galore working with databases , also try the blog and tutorials and if you get stuck, asking specific questions about what you may have missed might help reinforce your understanding.