QF - displaying errors w/ setGroupElementTemplate()?
| From: | Graham Clarke | Date: | Wed, 17 Dec 2003 20:52:52 +0000 |
| Subject: | QF - displaying errors w/ setGroupElementTemplate()? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9626@lists.php.net to get a copy of this message | ||
Hi - I have a QF where I use setGroupElementTemplate() to customize the output. My problem is that no error messages are rendered. What's the trick?
This is how I'm doing it now.
$form->addGroup($row_1, 'row_1', '', ' ', false);
$renderer->setGroupTemplate('<tr>{content}</tr>', 'row_1');
$renderer->setGroupElementTemplate('<td align="left" class="label">{label}<br />{element}</td>', 'row_1');
Adding <!-- BEGIN error --><span style=\"color: #ff0000\">{error}</span><br /><!-- END error --> causes {error} to be rendered, even if there is a validation error.
Thanks
Graham
Thanks
Graham
Graham Clarke
GrahamC@53Tech.com
www.53Tech.com
603.643.9955