why i have to add _form ⇒ $form, if i include part of form designed in latte template

Notice: This thread is very old.
mcmatak
Member | 504
+
0
-

why i have to add _form ⇒ $form, if i include part of form designed in latte template

			{form xForm}
				<div class="modal-body">
					{include $formPath, _form => $form}
				</div>
				<div class="modal-footer">
					{input save}
					{input remove}
					<button type="button" class="btn btn-default" data-dismiss="modal">{_adm.buttons.close}</button>
				</div>
			{/form}

inside this latte template is input macro

<div class="form-group required">
	{input number}
</div>
Milo
Nette Core | 1283
+
0
-

The form macros use the internal $_form. You should actually pass _form => $_form.

mcmatak
Member | 504
+
0
-

i understand that i have to, but why? it is not too much user friendly