11<?php
22%A%
3- echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], array ( 'id ' => 'myForm ' , 'class ' =>"ajax " ) ) ?>
3+ echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], [ 'id ' => 'myForm ' , 'class ' =>"ajax " ] ) ?>
44
5- <?php $ iterations = 0 ; foreach (array ( 'id ' , 'username ' , 'select ' , 'area ' , 'send ' ) as $ name ) { ?>
5+ <?php $ iterations = 0 ; foreach ([ 'id ' , 'username ' , 'select ' , 'area ' , 'send ' ] as $ name ) { ?>
66 <?php $ _input = is_object ($ name ) ? $ name : $ _form [$ name ]; if ($ _label = $ _input ->getLabel ()) echo $ _label ?>
77
8- <?php $ _input = is_object ($ name ) ? $ name : $ _form [$ name ]; echo $ _input ->getControl ()->addAttributes (array ( 'title ' => 'Hello ' , 'size ' => 10 ) ) ?>
8+ <?php $ _input = is_object ($ name ) ? $ name : $ _form [$ name ]; echo $ _input ->getControl ()->addAttributes ([ 'title ' => 'Hello ' , 'size ' => 10 ] ) ?>
99
1010 <?php echo Latte \Runtime \Filters::escapeHtml ($ _input ->getError (), ENT_NOQUOTES ) ?>
1111
@@ -14,8 +14,8 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro
1414
1515 <br>
1616
17- <?php $ _input = is_object ($ form [$ name ]) ? $ form [$ name ] : $ _form [$ form [$ name ]]; if ($ _label = $ _input ->getLabel ()) echo $ _label ->addAttributes (array ( 'title ' => 'hello ' ) )->startTag () ?>
18- <?php $ _input = is_object ($ form [$ name ]) ? $ form [$ name ] : $ _form [$ form [$ name ]]; echo $ _input ->getControl ()->addAttributes (array ( 'title ' => 'Hello ' , 'size ' => 10 ) ) ?>
17+ <?php $ _input = is_object ($ form [$ name ]) ? $ form [$ name ] : $ _form [$ form [$ name ]]; if ($ _label = $ _input ->getLabel ()) echo $ _label ->addAttributes ([ 'title ' => 'hello ' ] )->startTag () ?>
18+ <?php $ _input = is_object ($ form [$ name ]) ? $ form [$ name ] : $ _form [$ form [$ name ]]; echo $ _input ->getControl ()->addAttributes ([ 'title ' => 'Hello ' , 'size ' => 10 ] ) ?>
1919 <?php if ($ _label ) echo $ _label ->endTag () ?>
2020
2121 <?php $ _input = is_object ($ form [$ name ]) ? $ form [$ name ] : $ _form [$ form [$ name ]]; echo Latte \Runtime \Filters::escapeHtml ($ _input ->getError (), ENT_NOQUOTES ) ?>
@@ -45,7 +45,7 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro
4545
4646
4747
48- <?php echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], array () ) ;echo Nette \Bridges \FormsLatte \Runtime::renderFormEnd ($ _form ) ?>
48+ <?php echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], [] ) ;echo Nette \Bridges \FormsLatte \Runtime::renderFormEnd ($ _form ) ?>
4949
5050
5151
0 commit comments