flexy:ignore="yes" -- Prevent Automatic form value replacement
Описание
Tells the generator not to replace form elements with PHP code. Can be used with a Form
Tag, or individual elements.
Замечание:
<input>s and <textarea>s
with flexy:include or flexy:ignore:
If you are turning off flexy element creation with
flexy:ignore="yes", then this is not inherited by
included templates, and you need to add that tag to the included
template as well.
Пример
Пример 43-1. Template with flexy:ignore
<form name="theform1">
<input name="theinput1">
<input name="theinput2" value="dummy">
</form>
<form name="theform2" flexy:ignore>
<input name="theinput3" value="dummy">
<input name="theinput4" value="dummy">
</form>
<form name="theform3">
<input name="theinput5" value="dummy" flexy:ignore>
<input name="theinput6" value="dummy">
</form>
<form name="theform4" flexy:ignoreonly="yes">
<input name="theinput7" value="dummy">
<input name="theinput8" value="dummy">
</form> |
|
Пример 43-2. Compiled template
<?php echo $this->elements['theform1']->toHtmlnoClose();?>
<?php echo $this->elements['theinput1']->toHtml();?>
<?php echo $this->elements['theinput2']->toHtml();?>
</form>
<form name="theform2">
<input name="theinput3" value="dummy">
<input name="theinput4" value="dummy">
</form>
<?php echo $this->elements['theform3']->toHtmlnoClose();?>
<input name="theinput5" value="dummy" flexy:ignore>
<?php echo $this->elements['theinput6']->toHtml();?>
</form>
<form name="theform4">
<?php echo $this->elements['theinput7']->toHtml();?>
<?php echo $this->elements['theinput8']->toHtml();?>
</form> |
|