コード例 #1
0
ファイル: SongController.php プロジェクト: ngdvan/lntguitar
 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);
         }
     }
 }
コード例 #2
0
ファイル: Song.php プロジェクト: ngdvan/lntguitar
 /**
  * This is invoked after the record is deleted.
  */
 protected function afterDelete()
 {
     parent::afterDelete();
     SongBans::model()->updateFrequency($this->ban_artist, '');
 }