Example #1
0
 private function is_blog_present($id)
 {
     $blogshop = BlogShop::model()->findByPk($id);
     if ($blogshop == null) {
         return $blogshop;
     } else {
         return null;
     }
 }