Answer the question
In order to leave comments, you need to log in
How can I replace the getAssetsUrl method with upi (Yii)?
This is what the widget looks like by default:
$this->widget(
'bootstrap.widgets.TbNavbar',
[
'collapse' => true,
'brand' => CHtml::image(
Yii::app()->getTheme()->getAssetsUrl() . '/images/logo.png',
Yii::app()->name,
[
'width' => '38',
'height' => '38',
'title' => Yii::app()->name,
]
),
Answer the question
In order to leave comments, you need to log in
Try replacing this - Yii::app()->getTheme()->getAssetsUrl() . '/images/logo.png' to your path.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question