-- Joó Ádám <[EMAIL PROTECTED]> wrote
(on Tuesday, 31 July 2007, 02:19 PM +0200):
> You misunderstood render(). It takes a filesystem path as an argument,
> not a route.
Actually, it doesn't. The signature of it is:
public function render($action = null, $name = null, $noController = false)
where action is an action or template name, *minus the file suffix*.
$name is a named response segment, and $noController, if true, tells it
*not* to look for the view script in a subdirectory named after the
current controller.
So, let's say we're in the controller 'foo', in the 'baz' action:
$this->render('bar'); // renders foo/bar.phtml
$this->render('bar', null, true); // renders bar.phtml
$this->render(); // renders foo/baz.phtml
> On 7/31/07, minglee <[EMAIL PROTECTED]> wrote:
> > So I used
> > $this->render('view/id/1'), but a uncaught error appeared. If I used
> > $this->render('view'), no error but no message passed too.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/