/** * Constructor. * * @param string $charset The charset to set for the email content. */ public function __construct($charset = 'iso-8859-1') { if (!Zend_Registry::isRegistered('Ztal_View')) { throw new Exception('No available Ztal View'); } $this->view = clone Zend_Registry::get('Ztal_View'); $this->view->layout()->disableLayout(); $this->view->setCompressWhitespace(true); parent::__construct($charset); }
/** * Set up the layout and view ready for rendering. * * @return void */ protected function _setUpLayout() { $this->view->layout()->disableLayout(); $this->view->setCompressWhitespace(true); }