protected function _header() { response::sendHeaders(); $parent = $this->getParent(); if ($parent) { if ($this->_ignoreParentTemplate) { $parent = $parent->getParent(); } if ($parent) { $parent->_header(); //if ($this->getParent()) if ($this->_automaticWrappers) { echo "\r\n" . '<div class="' . get_class($this) . '_wrapper">'; } } } $this->header(); if ($this->_automaticWrappers) { echo "\r\n" . '<div class="' . get_class($this) . '_content">'; } }
public function _initIndex() { response::xml(); response::sendHeaders(); echo ySitemapIndex::getInstance()->setController($this); }