示例#1
0
文件: forum.php 项目: demoic/common
 /**
  * returns the current forum
  * @return Model_Forum
  */
 public static function current()
 {
     //we don't have so let's retrieve
     if (self::$_current === NULL) {
         self::$_current = new self();
         if (Request::current()->param('forum') != NULL) {
             self::$_current = self::$_current->where('seoname', '=', Request::current()->param('forum'))->limit(1)->cached()->find();
         }
     }
     return self::$_current;
 }