adding support for custom $smarty.myVar variable
| From: | David Förster | Date: | Tue, 08 Jun 2004 05:48:54 +0000 |
| Subject: | adding support for custom $smarty.myVar variable | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2413@lists.php.net to get a copy of this message | ||
Hello,
I'm working on formsess (formsess.sf.net, a smarty based form toolkit).
It basically consists of a prefilter to create the form, a custom smarty
class and an api to access the form data.
I would like to add support for a $smarty.formsess (just like get,
post..) variable to easily access all submitted data or validation
errors of a form.
As far as I see the only way to do this is to create a custom smarty
compiler class and overwrite _compile_smarty_ref().
(i also thought about using a prefilter but that's even dirtier..)
What do you think about that? Any other ideas how this could be done?
Any help is appreciated.
- david
ps: please cc, i'm not on the list
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]