use the new EmailText class.
This commit is contained in:
parent
81258f1700
commit
00099282fb
|
@ -100,13 +100,8 @@ class Admin_SysController extends Zend_Controller_Action
|
|||
$this->_redirect('/admin/sys/emailtext/ac/test/id/'.$id);
|
||||
}
|
||||
|
||||
$mailtp=new EmailText();
|
||||
$mailtp->db = $this->db;
|
||||
$mailtp->tmpid = $this->_request->getParam('id');
|
||||
$mailtp->data = array(
|
||||
'user' => $this->_request->getParam('user')
|
||||
);
|
||||
$body = $mailtp->loadtmp();
|
||||
$mailtp=new EmailText($this->db,$this->_request->getParam('id'),array('user' => $this->_request->getParam('user')));
|
||||
$body = $mailtp->getBody();
|
||||
if($body === false)
|
||||
{
|
||||
$this->messenger->addMessage('模板加载失败');
|
||||
|
|
Loading…
Reference in New Issue