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 -




You should use Module::getInstance()… check the docs about this -

where should i use that Module::getInstance().


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: