chinese-journal/yii/protected/models/User.php
2014-11-21 08:26:20 +00:00

24 lines
357 B
PHP

<?php
class User extends CActiveRecord
{
public static function model($className=__CLASS__)
{
return parent::model($className);
}
public function tableName()
{
return 'tbl_user';
}
public function rules()
{
return array(
array('username, password, email', 'required'),
array('email', 'email'),
);
}
}