/** * returns the current category * @return Model_Category */ public static function current() { //we don't have so let's retrieve if (self::$_current === NULL) { self::$_current = new self(); if (Request::current()->param('category') != URL::title(__('all'))) { self::$_current = self::$_current->where('seoname', '=', Request::current()->param('category'))->limit(1)->cached()->find(); } } return self::$_current; }