/** * @return ySitemapIndex */ public static function getInstance() { if (self::$_instance === null) { self::$_instance = new self(); } return self::$_instance; }
public function _initIndex() { response::xml(); response::sendHeaders(); echo ySitemapIndex::getInstance()->setController($this); }