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);
|
$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('模板加载失败');
|
||||||
|
|
Loading…
Reference in New Issue