Hello guys,
i want to create a widget and therefore should generate a yaml of an array. But it doesn’t work for me:
Example:
$data = array(‘username’ => ‘@example’);
$yaml = yaml::encode($data);
Failure:
Whoops \ Exception \ ErrorException (E_ERROR)
Method Kirby\Panel\View::__toString() must not throw an exception, caught Error: Class ‘KirbyPluginInstaller\yaml’ not found
Whats wrong?
Thanks for your help!