everything is in the title :)
I'm using superb adminlte theme for my app, and i'm trying to use variable into menu located on the left.
This menu is part of the aminlte layouts, and this view is called left.php.
I don't know where to declare $variable to be used into view left.php ?
Thanks in advance for your help.
SB
Honestly i'am not sure what the actual question is exactly about, but since you talk about menu let me guess you are trying to mess with menuitems.
I can only suggest creating your own Helper class and include it in index.php config
Yii::$classMap['yii\helpers\MenuHelper'] = '@app/helpers/MenuHelper.php';
and then simply call it like
\yii\helpers\MenuHelper::dosomething()
inside left.php
maybe this will help you: https://www.yiiframework.com/doc/guide/2.0/en/helper-overview