-- Steven <[EMAIL PROTECTED]> wrote (on Monday, 19 May 2008, 12:27 AM +0900): > I have created my own implementation of Zend_View in order to take > advantage of the Smarty templating engine. My class implements > Zend_View_Interface to be compliant with the ZF standards. > > One of my controllers has an 'editAction' method that attempts to render > the 'input.html' template (via echo > $this->_view->render('input.html');).
Your problem is the above line; call simply "$this->render('input');", and this will ensure that no additional templates are autorendered. > The template 'input.html' is > indeed rendered, however ZF still attempts to render the template > 'edit.html' as well. This leads to the following error message being > displayed at the top of the page: > > Warning: Smarty error: unable to read resource: "article/edit.html" in > /usr/local/php/lib/php/Smarty-2.6.18/libs/Smarty.class.php on line 1095 > > I'm using ZF 1.0.3 and it seems that the default behavior is to look > for, and render, a template of the same name as the calling action. My > question is: how do I circumvent that behavior, when required in cases > such as the one above? -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/