chinese-journal/yii/protected/models/User.php

24 lines
357 B
PHP
Raw Normal View History

2014-11-21 08:26:20 +00:00
<?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'),
);
}
}