is possible to render manually form as a component in presenter template?
- CZechBoY
- Member | 3608
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}