flexy:ignore -- Prevent Automatic form value replacement
Description
Tells the generator not to replace form elements with PHP code. Can be used with a Form
Tag, or individual elements.
Example
Example 25-1. Template with flexy:ignore <form name="theform">
<input name="theinput">
<input name="theinput2" value="dummy">
</form>
<form name="theform2" flexy:ignore>
<input name="theinput" value="dummy">
<input name="theinput2" value="dummy">
</form>
<form name="theform2">
<input name="theinput" value="dummy" flexy:ignore>
<input name="theinput2" value="dummy">
</form> |
|
Example 25-2. Compiled template <?php $this->setActiveQuickForm(0);echo $this->quickform->formHeadToHtml(); ?>
<?php echo $this->quickform->elementToHtml("theinput"); ?>
<?php echo $this->quickform->elementToHtml("theinput2"); ?>
</form>
<FORM NAME="theform2">
<INPUT NAME="theinput" VALUE="dummy">
<INPUT NAME="theinput2" VALUE="dummy">
</FORM>
<?php $this->setActiveQuickForm(1);echo $this->quickform->formHeadToHtml(); ?>
<INPUT NAME="theinput" VALUE="dummy">
<?php echo $this->quickform->elementToHtml("theinput2"); ?>
</form> |
|