adding support for custom $smarty.myVar variable

David Förster <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAxVNJNjg8+/B7NCsRAsiWAJ4jbKhu6/7aURcSPTEkJA6c29mpHwCfQIZK
wOiRQJNJb74066xaH29eUjY=
=4iJL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.