model() public static method

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : CustomerGroup
$className string active record class name.
return CustomerGroup the static model class
Exemplo n.º 1
0
 public function actionIndex()
 {
     $groups = CustomerGroup::model()->findAll();
     $this->render('index', array('groups' => $groups));
 }