Thứ Sáu, 23 tháng 9, 2011

Zend load view template, zend load email template

zend load view template kết hợp với smarty

//zend controller
function sendmailAction()
{
$row = model->query...vv
$newPass = 123;
//load view
$view = $this->getHelper('ViewRenderer')->view;
$view->fullname  = $row['fullname'];
$view->email = $row['email'];
$view->password = $newPass;
$content = $view->render('mail/forgot_password.php');
//end load view
print_r($content);
}

//forgot_password.php

Hello: {$fullname};
account: {$email};
password: {$email};

Author: nhantam

tag: zend load view template kết hợp với smarty, zend load email template

Không có nhận xét nào: