Difference between revisions of "Smarty"

From OpenEMR Project Wiki
(clean up english.)
Line 11: Line 11:


=== library/classes/ORDataObject.class.php ===
=== library/classes/ORDataObject.class.php ===
to model how the data is used in a form, the OrDataObject object is used.
The ORDataObject class is meant to be used to model the data contained in a form.

Revision as of 19:10, 18 February 2011

WARNING

The usage of smarty in new openemr code is officially deprecated. This page is only meant to collect smarty resources, so that other deelopers know what they are doing, when touching smarty code in OpenEMR.


Object useful for Forms

Smarty has been integrated into openemr for form generation functions, and as part of the calendaring system.

library/classes/Controller.class.php

some forms work by using the Controller class (or a descendant) to supply a template, and a series of values for smarty to intersperse within that template.

library/classes/ORDataObject.class.php

The ORDataObject class is meant to be used to model the data contained in a form.