2009年1月6日星期二

Re: [fw-mvc] Zend_View phtml scripts path default when using startMvc

$this->render('email');

:)

On Tue, Jan 6, 2009 at 3:41 PM, Gina-Marie Rollock <Gina-Marie.Rollock@networkts.com> wrote:
If I'm understanding your request, simply leave off the .phtml
extension, like so $view->render('email'); This always works for me.

-----Original Message-----
From: webPragmatist [mailto:chris@webpragmatist.com]
Sent: Tuesday, January 06, 2009 1:46 PM
To: fw-mvc@lists.zend.com
Subject: [fw-mvc] Zend_View phtml scripts path default when using
startMvc


I was under the impression that Zend could figure out what I meant by
$view->render() if I am in a specific controller.

For instance, by default it knows to load
/auth/views/scripts/forgotpassword/create.phtml when the createAction()
is
called in the ForgotPasswordController.php

...but...

If I instantiate a new $view and call $view->render('email.phtml') it
does
not know to look in /auth/views/scripts/forgotpassword/

Any thoughts on how to do accomplish what I am doing or a better way to
load
a simple email template?
--
View this message in context:
http://www.nabble.com/Zend_View-phtml-scripts-path-default-when-using-st
artMvc-tp21316461p21316461.html

Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: