-- David Mintz <[EMAIL PROTECTED]> wrote
(on Tuesday, 11 September 2007, 03:46 PM -0400):
> The thing that has had me going a little nuts was that I didn't
> realize that to render($someView) within a view, you need the suffix

I hope to add support for the style used in the ViewRenderer for 1.1.0
via an inflector class, but need to weigh how to do it in a
backwards-compatible way. Zend_View predates the ViewRenderer by close
to two years, so I have to tread carefully. :-)

> and -- render() returns a string instead of printing it!

This is exactly like when rendering a view normally, actually:

    $view = new Zend_View(...);
    $view->foo = 'bar';

    $rendered = $view->render('foo.phtml');

That said, I've often forgotten this in my own view scripts, especially
when using short tags ('<?', '<?='), forgetting the trailing '='. :-)

> On 9/11/07, P draic Brady <[EMAIL PROTECTED]> wrote:
> > I doubt there is an official solution. When you want to reuse a template,
> > it immediately breaks the convention for template naming set by the
> > ViewRenderer plugin. So the solutions you noted are pretty much the way to
> > go, depending on the end user.[...]

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to