External_form ... direct with code in a template


to integrate a block in a template such te navigation is easy … but now, i have a template for example a product … at the end of the site, i want to place a “quick-contact”.
so i use:

$bt = BlockType::getByHandle('external_form');
$bt->controller->filename = 'controller/test_form.php';

but this doesn’t work …
can somebody help me please?

Why not make a new or override the existing block with the form and add it to the page rather than trying render a form file?

hmmmmm … right, it is a way too … but I preffered the render-way… :slight_smile: