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