flexy:if="variable or method()" | |
HTML_Template_Flexy | |
PEAR Manual | |
Usage (
<SELECT NAME="name">
)
fills in the select values based on the form name and the tag name and adds code to check if the object variable matches them. If flexyignore is used, it is left alone. If static is set, the currently defined options will be used.
Using an element to change a template.
|
template example
<BODY> <FORM name="theform" flexy:ignoreonly="yes"> <SELECT name="test_select"></SELECT> </FORM> </BODY> |
compiled template
|
output from the Template
<BODY> <FORM name="theform"> <SELECT name="test_select"> <option value="123">a selection option <option value="1234" selected>another selection option </SELECT> </FORM> </BODY> |
flexy:if="variable or method()" | |
HTML_Template_Flexy | |
PEAR Manual | |