You are not logged in.
Here's a quick video explaining how quickly and easy it is to write designer-friendly HTML emails using Zend_View and Zend_Mail.
Enjoy!
Offline
I have question, i try use $this->baseUrl(); helper in mail template and doesn’t work. Any help?
Offline
hey abtris,
I think it might have something to do with what $this is in the mail template. When you instantiate Zend_View, it might not have all the helper object references that the Zend_View from your Zend_Controller would have...
Offline
hi Jon,
Great tutorial series i have ever watch about zend framework
how we can set up zend_translate for zend_mail with zend_view method, normally i use zend translate but when i try to use with zend_mail html it didnt work
Offline
Hi tribesman,
you should be able to use the zend_translate view helpers in the zend_Mail instance of Zend_View... What does your code look like?
Offline
This is my translate code in my bootstrap and i used csv files with utf-8
Zend_Loader::loadClass('Zend_Translate');
Zend_Loader::loadClass('Zend_Registry');
$registry = Zend_Registry::getInstance();
$lang=new Zend_Locale();
$translate =new Zend_Translate('csv',APPLICATION_PATH.'/lang/'.$lang->getlanguage().'.csv',
'auto',
array('scan'=>Zend_Translate::LOCALE_FILENAME)
);
$translate->setlocale($lang);
$view->jquery()->enable();
$registry->set('Zend_Translate', $translate);i used your ZC56 – Painless HTML Emails with Zend_Mail tutorial codes and i try it with direct echo in phtml file and sending viewparams both didint translate
Offline
ok i handled it.. i forgot translate code in phtml
silly me
Offline