<?php
echo $this->getLayout()->createBlock('VladimirPopov\WebForms\Block\Form',
null,
['data'=>[
'webform_id' => 2,
'template' => 'VladimirPopov_WebForms::webforms/form/default.phtml',
]]
)->toHtml();
?>
Updated from the Webforms documentation. They are missing some commas and quotes.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.