示例#1
0
文件: Mail.php 项目: jo-m/ecamp3
 /**
  * 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);
 }
示例#2
0
文件: Mail.php 项目: namesco/ztal
 /**
  * Set up the layout and view ready for rendering.
  *
  * @return void
  */
 protected function _setUpLayout()
 {
     $this->view->layout()->disableLayout();
     $this->view->setCompressWhitespace(true);
 }