I want to define a dir (for loading inline svg via svg()) helper in various tpls)
I thought off placing them in the config like so
return [ 'icon_dir' => $kirby->root('assets') . '/images/icons/' ];
and getting them with
but I get
**Notice** : Undefined variable: kirby
Any other ideas to set global dirs?
maybe define own roots in index.php? like described here: