model() public static method

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