is possible to render manually form as a component in presenter template?

thcom
Backer | 94
+
0
-

Hi, i have presenter and from as a component, created by a factory

i can manually render form in form template, but i need manually render i presenter:action template

is it possible ?

CZechBoY
Member | 3608
+
0
-

yeah, just add component to presenter and use it in template.

presenter:

/**
  * @var MyFormFactory
  */
private $myFormFactory;

protected function createComponentMyForm()
{
    return $this->myFormFactory->create()
}

default.latte

{block content}
{form myForm}
...
{/form}
{/block}
thcom
Backer | 94
+
0
-

ok !!

I am so dumb, now it is clear !!!

THANK YOU !