/** * Manages all models. */ public function actionIndex() { $model = new Horoscope('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Horoscope'])) { $model->attributes = $_GET['Horoscope']; } $this->render('index', array('model' => $model)); }
<?php /* */ error_reporting(E_ALL); include "./common.php"; $horoscope = new Horoscope(); $horoscope->getDataFromRSS();