Example #1
0
 private static function loadItems()
 {
     self::$_items = array();
     $models = self::model()->findAll();
     foreach ($models as $model) {
         self::$_items[$model->id] = $model->id . " " . $model->party_name;
     }
 }