L
L
Leopandro2016-02-24 15:26:30
Yii
Leopandro, 2016-02-24 15:26:30

Why won't breadcrumbs load?

The view has the following text:

\yii\widgets\Pjax::begin();
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Clients'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;

If I load the page in the usual way, then the braincrambs are reloaded too, but if I use Ajax, they don't. How can I make them work with Ajax as well? I guess that you need to manually call the bootstrap script with javascript, but which one?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question