CustomerGroup::model PHP 메소드

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : CustomerGroup
$className string active record class name.
리턴 CustomerGroup the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

예제 #1
0
 public function actionIndex()
 {
     $groups = CustomerGroup::model()->findAll();
     $this->render('index', array('groups' => $groups));
 }