Pear, Quickform, Smarty templates & Overlib demonstration
Quick overview
Please look here for a quick overview of Quickform,
Smarty templates & Overlib.
Demonstration
These pages are intended as a quick demo of Quickform,
Smarty templates & Overlib,
to convince you that is it worth your time to learn more about them.
It is unfortunate that the QuickForm authors seem unable to understand that people need good documentation in order to be able to use software.
What little they do provide is largely useless.
Notes:
- run these samples in the order below, for each the source code is available.
- explanations may be removed where the explanation exists in an earlier example.
- There are two versions of the PHP code, the first uses the original QuickForm,
the second QuickForm2.
- Both QuickForm and QuickForm2 versions use the same smarty templates (where appropriate).
- QuickForm2 is designed to work with PHP 5.2 or later, it does not, yet, support client side (javascript) field checking - unfortunately.
- The QuickForm2 code is alpha as of November 2009.
- To use the QuickForm2 code you will need the alpha renderer: Array.php,
this may not stay there very long.
To see one of every input field that QuickForm2 handles see Qf2ValidTypes.php &
the same done with smarty Qf2ValidTypesSm.php with the template Qf2ValidTypes.tpl.
These should be regarded work in progress.
You may also find the stylesheets Qf2Style.css & Qf2StyleSm.css useful.
All files copyright (c) 2005, 2009, Parliament Hill Computers. Author: Alain D D Williams.
You may used these files as the basis your own (or organisation's/company's) project (under whatever
licence that you see fit), but may not claim ownership or copyright of the substantially unmodified files.
These demonstrations are made available in the hope that they are useful, there is no warranty at all, use at your own risk.
Return to
tutorial home.
If you want any help using the above, or have any comments or suggestions, please contact us.