Quickform: requiredtemplate issues
| From: | Jeroen Houben | Date: | Tue, 17 Jun 2003 15:10:05 +0000 |
| Subject: | Quickform: requiredtemplate issues | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17540@lists.php.net to get a copy of this message | ||
Hi,
I've been working with QF and the Smarty renderers. Works well, good job. I have some issues though..
I think it would be nicer if you could just pass a filename to $renderer->setRequiredTemplate because that's also how Smarty works. With template files, not string data. Not a huge problem though because I can just do file_get_contents().
Another issue is not so easy to solve. I like to leave form labels out of my PHP code, because I think form labels belong to the template. Moreover, my PHP code drives several sites which all look different because I'm using different Smarty templates. I would also like to have different form labes for different sites. Problem is, $renderer->setRequiredTemplate doesn't work if you don't use label in the PHP code (AFAIK).
Any ideas?
Jeroen