예제 #1
0
 public function actionIgnoreListDelete($ignoreListId)
 {
     IgnoreList::model()->deleteByPk($ignoreListId);
     $this->redirect(Yii::app()->createUrl('site/ignoreList'));
 }
예제 #2
0
 public static function isInList($domain)
 {
     return IgnoreList::model()->find('domain = :domain', array(':domain' => $domain)) ? true : false;
 }