Esempio n. 1
0
 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);
         }
     }
 }
Esempio n. 2
0
 /**
  * This is invoked after the record is deleted.
  */
 protected function afterDelete()
 {
     parent::afterDelete();
     SongBans::model()->updateFrequency($this->ban_artist, '');
 }