@@ -7,7 +7,7 @@ class Template%a% extends Latte\Template
77 function render ()
88 {
99%A%
10- echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], ['id ' => 'myForm ' , 'class ' =>"ajax " ]) ?>
10+ echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ this -> global -> uiControl ["myForm " ], ['id ' => 'myForm ' , 'class ' =>"ajax " ]) ?>
1111
1212<?php
1313 $ iterations = 0 ;
@@ -21,11 +21,11 @@ class Template%a% extends Latte\Template
2121 $ _input = is_object ($ name ) ? $ name : $ _form [$ name ];
2222 echo $ _input ->getControl ()->addAttributes (['title ' => 'Hello ' , 'size ' => 10 ]) ?>
2323
24- <?php echo LFilters:: escapeHtmlText ($ _input ->getError ()) ?>
24+ <?php echo LR \Filters:: escapeHtml ($ _input ->getError ()) ?>
2525
2626 <?php
2727 $ _input = is_object ($ name ) ? $ name : $ _form [$ name ];
28- echo LFilters:: escapeHtmlText ($ _input ->getError ()) ?>
28+ echo LR \Filters:: escapeHtml ($ _input ->getError ()) ?>
2929
3030
3131 <br>
@@ -38,7 +38,7 @@ class Template%a% extends Latte\Template
3838
3939 <?php
4040 $ _input = is_object ($ form [$ name ]) ? $ form [$ name ] : $ _form [$ form [$ name ]];
41- echo LFilters:: escapeHtmlText ($ _input ->getError ()) ?>
41+ echo LR \Filters:: escapeHtml ($ _input ->getError ()) ?>
4242
4343<?php
4444 $ iterations ++;
@@ -83,7 +83,7 @@ class Template%a% extends Latte\Template
8383
8484
8585<?php
86- echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], []);
86+ echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ this -> global -> uiControl ["myForm " ], []);
8787 echo Nette \Bridges \FormsLatte \Runtime::renderFormEnd ($ _form ) ?>
8888
8989
@@ -94,7 +94,7 @@ class Template%a% extends Latte\Template
9494 if (isset ($ this ->params ['label ' ])) trigger_error ('Variable $label overwritten in foreach. ' );
9595 foreach ($ form ['sex ' ]->items as $ key => $ label ) {
9696 ?> <?php if ($ _label = $ _form ["sex " ]->getLabelPart ($ key )) echo $ _label ->startTag () ?> <?php echo $ _form ["sex " ]->getControlPart ($ key ) ?> <?php
97- echo LFilters:: escapeHtmlText ($ label );
97+ echo LR \Filters:: escapeHtml ($ label );
9898 if ($ _label ) echo $ _label ->endTag () ?>
9999
100100 <label title=hello<?php
@@ -154,7 +154,7 @@ class Template%a% extends Latte\Template
154154 if (isset ($ this ->params ['label ' ])) trigger_error ('Variable $label overwritten in foreach. ' );
155155 foreach ($ form ['checklist ' ]->items as $ key => $ label ) {
156156 ?> <?php if ($ _label = $ _form ["checklist " ]->getLabelPart ($ key )) echo $ _label ->startTag () ?> <?php echo $ _form ["checklist " ]->getControlPart ($ key ) ?> <?php
157- echo LFilters:: escapeHtmlText ($ label );
157+ echo LR \Filters:: escapeHtml ($ label );
158158 if ($ _label ) echo $ _label ->endTag () ?>
159159
160160 <label<?php
@@ -184,7 +184,7 @@ class Template%a% extends Latte\Template
184184<?php
185185 if (1 ) {
186186 ?> <form id="myForm" class="ajax"<?php
187- echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], array (
187+ echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ this -> global -> uiControl ["myForm " ], array (
188188 'id ' => NULL ,
189189 'class ' => NULL ,
190190 ), FALSE ) ?> >
@@ -198,7 +198,7 @@ class Template%a% extends Latte\Template
198198
199199
200200<FORM<?php
201- echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = is_object ($ _control ['myForm ' ]) ? $ _control ['myForm ' ] : $ _control [ $ _control ['myForm ' ]], array (
201+ echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = is_object ($ this -> global -> uiControl ['myForm ' ]) ? $ this -> global -> uiControl ['myForm ' ] : $ this -> global -> uiControl [ $ this -> global -> uiControl ['myForm ' ]], array (
202202 ), FALSE ) ?> >
203203 <input<?php
204204 $ _input = $ _form ["username " ];
@@ -212,7 +212,7 @@ class Template%a% extends Latte\Template
212212 echo $ _input ->getControl ()->getHtml () ?> </select>
213213
214214
215- <textarea title="<?php echo LFilters ::escapeHtmlAttr (10 ) ?> "<?php
215+ <textarea title="<?php echo LR \Filters ::escapeHtmlAttr (10 ) ?> "<?php
216216 $ _input = $ _form ["area " ];
217217 echo $ _input ->{method_exists ($ _input , 'getControlPart ' )?'getControlPart ' :'getControl ' }()->addAttributes (array (
218218 'title ' => NULL ,
0 commit comments