/** * Manages all models. */ public function actionIndex() { $this->breadcrumbs = array('Яндекс метки' => array('/yandexmap/yandexmap')); $model = new YandexMap('search'); $model->attachBehavior('dateComparator', array('class' => 'DateComparator')); $model->unsetAttributes(); // clear any default values // set attributes from get if (isset($_GET['YandexMap'])) { $model->attributes = $_GET['YandexMap']; } $allPoints = YandexMap::model()->findAll(); $this->render('list', array('model' => $model, 'coords' => $allPoints)); }