use the new EmailText class.

This commit is contained in:
wlx 2011-10-13 10:12:17 +00:00
parent 81258f1700
commit 00099282fb
1 changed files with 2 additions and 7 deletions

View File

@ -100,13 +100,8 @@ class Admin_SysController extends Zend_Controller_Action
$this->_redirect('/admin/sys/emailtext/ac/test/id/'.$id); $this->_redirect('/admin/sys/emailtext/ac/test/id/'.$id);
} }
$mailtp=new EmailText(); $mailtp=new EmailText($this->db,$this->_request->getParam('id'),array('user' => $this->_request->getParam('user')));
$mailtp->db = $this->db; $body = $mailtp->getBody();
$mailtp->tmpid = $this->_request->getParam('id');
$mailtp->data = array(
'user' => $this->_request->getParam('user')
);
$body = $mailtp->loadtmp();
if($body === false) if($body === false)
{ {
$this->messenger->addMessage('模板加载失败'); $this->messenger->addMessage('模板加载失败');