ma.floerl20243
ma.floerl20243

hi, i try to build my first plugin. however, i cant find any informations about what Backend::url() refers to. with the 'url' in the registerNavigation i always get an error when i try to access the backend - but i've no idea where to register the url first

'url'         => Backend::url('mfl/products'),

public function registerNavigation() { return [ 'owl' => [ 'label' => 'test', 'url' => Backend::url('mfl/products'), 'icon' => 'icon-lightbulb-o', 'order' => 500, 'sideMenu' => [ 'books' => [ 'label' => 'test SUB', 'icon' => 'icon-book', 'url' => Backend::url('mfl/products') ], 'locations' => [ 'label' => 'test SUB2', 'icon' => 'icon-map-marker', 'url' => Backend::url('mfl/products') ] ] ] ]; }

thanks

behiry
behiry

just add this code at the beginning: use Backend;

then use your code: 'url' => Backend::url('mfl/products'),

1-2 of 2