-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Labels
Description
The support for templateVars option was added in CakePHP 3.1.0. In the FormHelper you can find it here:
https://github.com/cakephp/cakephp/blob/928beba6f76c6d1e884ae26f42c86a25717a1a85/src/View/Helper/FormHelper.php#L1063
However, BootstrapFormHelper overrides this function. The line in question that adds templateVars to the array is notably missing here:
https://github.com/Holt59/cakephp3-bootstrap-helpers/blob/950221c851dc22da89a8d85820194c89296f6670/src/View/Helper/BootstrapFormHelper.php#L403
Therefore, this does not work: http://book.cakephp.org/3.0/en/views/helpers/form.html#adding-additional-template-variables-to-templates
I can confirm that it does work correctly after adding FormHelper.php#L1063 before BootstrapFormHelper.php#L40.