You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got a RuntimeException: Cannot find template named 'selectedClass'
What i did
I edited the FormHelper.php file in the vendors directory. Added the following to the templates array:
'selectedClass' => 'selected'
which fixed the problem for me. However i do not know if the fix is right. I just wanted to report this so you might look into it and apply the correct fix.
Regards
Jack
The text was updated successfully, but these errors were encountered:
This is a (multiple allowed):
bug
enhancement
question
CakePHP Version: 3.9.3.
Plugin Version/Branch: '4.0.2'.
What you did
Used this code:
Form->control('zones', ['type' => 'select', 'label' => 'Zones', 'options' => ['Zone1' => 'Zone 1', 'Zone2' => 'Zone 2'] 'default' => 1, 'multiple' => 'checkbox']);?>
What happened
Got a RuntimeException: Cannot find template named 'selectedClass'
What i did
I edited the FormHelper.php file in the vendors directory. Added the following to the templates array:
'selectedClass' => 'selected'
which fixed the problem for me. However i do not know if the fix is right. I just wanted to report this so you might look into it and apply the correct fix.
Regards
Jack
The text was updated successfully, but these errors were encountered: