Need Simple Example To Learn Database(Model) Code

I’m new to yii.I learnt more about yii (about view).But i need simple example “how to write code in model” with explanation to learn it correctly.Please any one help me.

Decumentation seems very simple and easy to learn.

Yii implements ActiveRecord so prabably good place to start:

Thanx mirunho.But I like to learn with using simple example.Anyone who did that kind of simple work please upload.Thank u very much.


Here is a step-by-step wiki that includes simple things, as well as more complex things (which you will anyway quickly need to know): Dynamic Parent and Child CGridViews

But, first start with this wiki: CGridView, CListView and CActiveDataProvider

Thank you very much Gerhard Liebenberg.