2009年12月8日星期二

[fw-mvc] Use Zend_Layout for email?

I have a dated email generation system I use for sending online order-fulfillment email notifications as well as other emails used to interact with users on our site. I am refactoring some parts of our order fulfillent system and want to update the templating system for email generation as well, preferably using Zend. The current site is built around ZF but the email backend is still backwoods, if you know what I mean.

Symantically, Zend_Layout is designed to render a basic layout that can then be merged with content from a view script. Looking at the docs, it seems that to use Zend_Layout as a stand-alone object, it becomes a self-contained rendering engine. Would using this tool to generate email content be in line with it's purpose, or would I use an instance of Zend_View for this? What has everyone else done in this situation? I would like to use the ZF the way it was intended, so your collective input would be appreciated.

--
regards,

Nathan Garlington
www.tandrtrailer.com

没有评论: