implement module viewPath in all views instead of static file reference

This commit is contained in:
tonis ormisson
2022-09-08 09:41:08 +03:00
parent 0009db637a
commit 569b049011
20 changed files with 57 additions and 20 deletions

View File

@ -14,10 +14,11 @@ use yii\helpers\Html;
/** @var yii\web\View $this */
/** @var Da\User\Model\User $user */
/** @var \Da\User\Module $module */
?>
<?php $this->beginContent('@Da/User/resources/views/admin/update.php', ['user' => $user]) ?>
<?php $this->beginContent($module->viewPath. '/admin/update.php', ['user' => $user]) ?>
<?php $form = ActiveForm::begin(
[