Difference between revisions of "Smarty"
From OpenEMR Project Wiki
(use controlling properly in controller's description.) |
|||
Line 8: | Line 8: | ||
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 === | === library/classes/Controller.class.php === | ||
Forms using the 'object oriented approach' are known to use the Controller class (or a descendant) to control smarty. they do this by supplying a template, and a series of values for smarty to intersperse within that template. | |||
=== library/classes/ORDataObject.class.php === | === library/classes/ORDataObject.class.php === |
Revision as of 03:26, 19 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 developers 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
Forms using the 'object oriented approach' are known to use the Controller class (or a descendant) to control smarty. they do this by supplying 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.
The OrDataObject has the following variable members:
Variable | Use |
---|---|
_table | The sql table that the form stores its values in. |