public function render() { $html = parent::render(); $this->template->set('contenttype', 'text/plain'); $c = $this->content; if ($this->content instanceof SMlite) { $this->content = $this->content->render(); } $this->content = strip_tags($this->content); $plain = parent::render(); $this->content = $c; return $plain . $html; }
public function init() { parent::init(); $this->template->set('contenttype', 'text/plain'); }