I am attempting to add a custom control to a nette form, using the example given in the official documentation here.
I am having problems. First off I though I would try to use the example as a starting point. Unfortunately it doesn't work. when using the code provided I get
Notice: Uninitialized string offset: 0 in Composer\vendor\nette\utils\src\Utils\Html.php on line 494
Warning: Illegal offset type in Composer\vendor\nette\utils\src\Utils\Html.php on line 392
and only the label actually renders. Have I missed something obvious here or does the example just not work?