R
R
Rustam Akimov2017-01-19 12:56:54
Yii
Rustam Akimov, 2017-01-19 12:56:54

How to link to another site from Yii2 menu?

Is it possible to add link to VK in site menu in Yii2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-01-19
@Inogami

yes, just provide the link in style
like:

Nav::widget([
    'items' => [
        [
            'label' => 'Item label',
            'url' => 'http://vk.com',
        ],
    ]
]);

A
Anton, 2017-01-19
@karminski

Reading documentation
www.yiiframework.com/doc-2.0/yii-bootstrap-nav.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question