Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Sep 11, 2024
1 parent 4eede9c commit 4e57dbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/common/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Router\UrlGeneratorInterface;
use Yiisoft\Translator\TranslatorInterface;
use Yiisoft\Yii\View\CsrfViewInjection;
use Yiisoft\Yii\View\Renderer\CsrfViewInjection;

return [
'app' => [
Expand Down Expand Up @@ -39,7 +39,9 @@
],
],

'yiisoft/yii-view' => [
'yiisoft/yii-view-renderer' => [
'viewPath' => '@views',
'layout' => '@layout/main.php',
'injections' => [
Reference::to(CommonViewInjection::class),
Reference::to(CsrfViewInjection::class),
Expand Down

0 comments on commit 4e57dbb

Please sign in to comment.