So the missing_view template will be filled correctly and avoid the `$class variable not exist`when the view is rendered. Also remove an extra html tag
@@ -42,7 +42,7 @@ $this->start('subheading');
Make sure your plugin <em><?= h($plugin) ?></em> is in the <?= h($pluginPath) ?> directory and was loaded.
<?php endif ?>
<?= $this->element('plugin_class_error', ['pluginPath' => $pluginPath]) ?>
-</p>
+
<?php $this->end() ?>
<?php $this->start('file') ?>
@@ -322,7 +322,7 @@ class ViewBuilder implements JsonSerializable, Serializable
$className = App::className($className, 'View', 'View');
}
if (!$className) {
- throw new MissingViewException([$this->_className]);
+ throw new MissingViewException(['class' => $this->_className]);
$data = [