Maybe it’s hard to you to update your class model of a table when you’ve just add a new field/coloumn/attribute. It causes no effect on Create and Update application.
For example, you add coloumn post_code on your user table.
Then you should update the model (model/User.php):
– on function rules() just add new line: array(‘post_code’, ‘numerical’, ‘integerOnly’=>true),
– on function attributeLabels() add new line, to define its name: ‘post_code’ => ‘Post Code’,
– maybe you should update some related views file
Hope this will helping you