Model里的类的属性是在哪定义的? [ 新手入门 ]
比如用gii生成的 model下的User.php
/**
 * This is the model class for table "tbl_user".
 *
 * The followings are the available columns in table 'tbl_user':
 * @property integer $id
 * @property string $username
 * @property string $password
 * @property string $salt
 * @property string $email
 * @property string $profile
 *
 */
class User extends CActiveRecord
{
...
}
注释里说的那些可以直接使用的属性是在哪定义的? 类里没有看到呀。
共 8 条回复
- 
 - 
 - 
 - 
yhl27ml@163.com 回复于 2011-08-10 09:25 举报RT。。。,我也不明白这个,求解。。
 - 
lz19881123 回复于 2011-08-10 14:40 举报同求!!!!
 - 
 - 
 - 
 
2lenzi
            注册时间:2011-08-05
最后登录:1970-01-01
在线时长:0小时0分
    最后登录:1970-01-01
在线时长:0小时0分
- 粉丝0
 - 金钱100
 - 威望0
 - 积分100