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.

http://www.yiiframework.com/doc/guide/1.1/en/basics.model

Yii implements ActiveRecord so prabably good place to start:

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

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.

Hi

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.