Dominus77 / yii2-advanced-start

Yii2 Start Project Advanced Template

Home Page:https://dominus77.github.io/yii2-advanced-start/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post Registration View File 404

zmoddynamics opened this issue · comments

Hello, after registering a user I receive this error message:

The view file does not exist: ../frontend/mail/layouts/html.php

It seems the view file html.php is located in common/mail/layouts/html.php ?
Any idea what could be wrong?

Setting viewPath to '@common/mail' in mailer component config appears to resolve the issue? Curious as to why this isn't the default in your application ?
'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mail', 'useFileTransport' => false, ... ]

I initialized it under dev environment. Before doing so, I made my custom additions to /dev/common/config/main-local.php. I believe now that I may have accidentally deleted the ViewPath declaration when pasting. Thank you for your assistance.