public function actionFlash() { $model = new P3Media('search'); $model->unsetAttributes(); $model->attributes = array('mimeType' => 'flash'); $this->render('index', array('model' => $model, 'defaultPreset' => 'original')); }
public function actionImage() { $model = new P3Media('search'); $model->unsetAttributes(); $model->attributes = array('mimeType' => 'image'); if (isset($_GET['P3Media'])) { $model->attributes = $_GET['P3Media']; } $model->dbCriteria->order = "id DESC"; $this->render('index', array('model' => $model)); }
public function actionAdmin() { $model = new P3Media('search'); $scopes = $model->scopes(); if (isset($scopes[$this->scope])) { $model->{$this->scope}(); } $model->unsetAttributes(); if (isset($_GET['P3Media'])) { $model->attributes = $_GET['P3Media']; } $this->render('admin', array('model' => $model)); }