How to add item to menu navigation?
I want add item to Menu navigation without childof. In fact i want the item will be parent in menu navigation. I think have to use luya\cms\models\Nav...
Yii::$app->menu->injectItem(new InjectItem([
'childOf' => 123,
'title' => 'This is the inject title',
'alias' => 'this-is-the-inject-alias',
]));
How to add
item
tomenu navigation
? I want add item toMenu navigation
withoutchildof
. In fact i want the item will be parent in menu navigation. I think have to useluya\cms\models\Nav
...