2010-07-31 44 views

回答

4
$view = new Zend_View(); 

// path to your email view or what ever 
$view->setScriptPath(APPLICATION_PATH . '/views/emails/'); 

// put html in this var 
$html = $view->render('myview.phtml'); 
+0

嗯,你要创建的视图的新实例。很有意思。这就是为什么它没有为我工作,我想我也是这样做的。我会检查一下。谢谢。 – Somebody 2010-08-03 16:08:43

+0

像魅力一样工作。忘了回复。 :) 再次感谢 – Somebody 2010-08-17 11:51:58