QuickForm with smarty support ?
| From: | ThE PhP_KiD | Date: | Sat, 19 Apr 2003 06:51:27 +0000 |
| Subject: | QuickForm with smarty support ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4956@lists.php.net to get a copy of this message | ||
Hi,
I've maked (bit) changes to "HTML/QuickForm/Render/ITStatic.php"
and generate from that, next file:
"HTML/QuickForm/Render/ITSmarty.php"
Mainly, I've change ..._tpl->SetVariable(), by ..._tpl->assign()
I can't to emule PlaceHoldersExist() method on smarty, because
Smarty first load variables, and later load template file.
(can anybody fix that ?)
Also, I've rewritted examples on
"docs/it-static.html" --> "docs/smarty_sample.tpl"
and
"docs/ITstatic_example.php" --> "docs/smarty_sample.php"
I have tested, and seems work...
(please, sorry 25kbytes attached zip file)
Please, tell me what you think.
Regards,
Mac
..The PhP_KiD
Attachment: [application/x-zip-compressed] HTML_QuickForm-3.zip
Attachment: [application/x-zip-compressed] HTML_QuickForm-3.zip