public function init() { parent::init(); $this->_contextSwitch = $this->_helper->getHelper('contextSwitch'); if (!$this->_contextSwitch->hasContext('opml')) { $this->_contextSwitch->addContext('opml', array('suffix' => 'opml', 'headers' => array('Content-type' => 'text/xml'))); } $this->_contextSwitch->addActionContext('view', array('rss', 'atom', 'opml'))->initContext(); }
public function init() { parent::init(); $this->_contextSwitch = $this->_helper->getHelper('contextSwitch'); $this->_contextSwitch->addActionContext('result', array('rss', 'atom'))->initContext(); }
public function init() { parent::init(); }