Hemanth
(Hemanthguruhj)
1
i am getting an error like this
Unknown Property – yii\base\UnknownPropertyException
Getting unknown property: yii\web\View::module
when i add the breadcrumb code in module/webform/view/index/index.php
the code is -
$this->breadcrumbs=array(
$this->module->id,
);
mdomba
(Maurizio Domba Cerin)
2
Hemanth
(Hemanthguruhj)
3
where should i use that Module::getInstance().
Hi!
Try it like that.
$this->params['breadcrumbs'][] = ['label' => 'First Level', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => 'Second Level', 'url' => ['view', 'id' => $myModel->id]];
$this->params['breadcrumbs'][] = 'Third Level';
Have you read the guide?
If not - read every single topic once before starting your project:
http://www.yiiframework.com/doc-2.0/guide-README.html
Regards