ACF acf www-controller.lua reference: Difference between revisions

From Alpine Linux
No edit summary
Line 4: Line 4:


=== cfe ( table ) ===
=== cfe ( table ) ===
Returns a table with ''value'', ''type'', ''option'', ''errtxt'' and ''name'' values.  If an input table is given in the call, those key/value pairs are added as well.
Guarantees the view will not get a "nil" on value, type, option, errtxt or name.


=== find_template (appdir, prefix, controller, action viewtype ) ===
=== find_template (appdir, prefix, controller, action viewtype ) ===

Revision as of 20:03, 26 October 2007

acf_www-controller.lua reference

The acf_www-controller.lua provides the basic view resolver, exception handler, and application-wide functions for the acf web application.

cfe ( table )

Returns a table with value, type, option, errtxt and name values. If an input table is given in the call, those key/value pairs are added as well.

Guarantees the view will not get a "nil" on value, type, option, errtxt or name.

find_template (appdir, prefix, controller, action viewtype )

exception_handler ( self, message )

view_resolver ( self )