Data Access Layer Of Yii

Hello All,

I need a help, I’m a Java guy and I use to work with Hibernate framework where we use a separate layer for Data Access from Model. How about doing this here in Yii Framework? Do I need to do everything in model where Yii takes care of data access layer or can I create one more layer for data access…

Thanks in advance

Yii provides you with both DAO and ActiveRecord. Information on these topics can be found here:

http://www.yiiframework.com/doc/guide/1.1/en/database.dao

http://www.yiiframework.com/doc/guide/1.1/en/database.ar

Mostly you would work with ActiveRecords, but yii does not force you to use anything. You are free to implement more layers if you so desire :)

Thanks for your response Dave… :)