public function actionBans() { if (isset($_GET['q']) && ($keyword = trim($_GET['q'])) !== '') { $tags = SongBans::model()->suggestTags($keyword); //var_dump($tags);die; if ($tags !== array()) { echo implode("\n", $tags); } } }
/** * This is invoked after the record is deleted. */ protected function afterDelete() { parent::afterDelete(); SongBans::model()->updateFrequency($this->ban_artist, ''); }