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