title: Yii The view file does not exist - where do mail layouts go
body: <p>I am using basic template but have adapted the advanced user password reset functionality, for some reason I can't get it to find the mail layouts.</p>
  
  <p>So in <code>\mail\layouts</code> I have 
  - passwordResetToken-html.php
  - passwordResteToken-text.php</p>
  
  <p>In web.php I have </p>
  
  <pre><code>'mailer' =&gt; [
          'class' =&gt; 'yii\swiftmailer\Mailer',
          'viewPath' =&gt; 'app\mail\layouts',
  ...
  </code></pre>
  
  <p>The advanced template uses</p>
  
  <pre><code>'viewPath' =&gt; '@common/mail',
  </code></pre>
  
  <p>But as i'm using basic template, its not in the common/mail folder.</p>
  
  <p>In sendMail function in PasswordResetRequestForm.php i have</p>
  
  <pre><code>return \Yii::$app-&gt;mailer-&gt;compose(['html' =&gt; 'passwordResetToken-html',     'text' =&gt; 'passwordResetToken-text'], ['user' =&gt; $user]) 
  ... 
  </code></pre>
  
  <p>However getting error
  The view file does not exist: app\mail\layouts\passwordResetToken-html.php</p>
  
  <p>I know this is going to be something small but for the life of me i cannot see it</p>