Changed all calls to View::render() in views to use absolute path within module
Maximises compatibility with view overrides, preventing "View not Found – yii\base\ViewNotFoundException" errors when a view is overridden that contains a call to `View::render()` and a relative path was specified
This commit is contained in:
@ -32,7 +32,7 @@ use yii\helpers\Html;
|
||||
<h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?= $this->render('_menu') ?>
|
||||
<?= $this->render('/shared/_menu') ?>
|
||||
<?= $content ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -20,7 +20,7 @@ $this->title = $title;
|
||||
?>
|
||||
|
||||
<?= $this->render(
|
||||
'_alert',
|
||||
'/shared/_alert',
|
||||
[
|
||||
'module' => $module,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user