Difference between revisions of "Smarty"

From OpenEMR Project Wiki
(a little more descriptive version.)
(actually start to make this page make sense.)
Line 4: Line 4:




== Functions Available ==
== Object useful for Forms ==


Smarty has been integrated into openemr for form generation functions, and as part of the calendaring system.
Smarty has been integrated into openemr for form generation functions, and as part of the calendaring system.
=== library/classes/Controller.class.php ===
Smarty works by using the Controller class (or a descendant) to supply a template, and a series of values for smarty to intersperse within that template.


== Controller.class.php ==
=== library/classes/ORDataObject.class.php ===
Smarty works by using the controller class (or a descendant) to supply a template, and a series of values for smarty to intersperse. to model how the data is used in a form, the OrDataObject object is used.
to model how the data is used in a form, the OrDataObject object is used.

Revision as of 06:41, 15 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

Smarty works 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

to model how the data is used in a form, the OrDataObject object is used.