title: Create a new Controller manually and face with "View not Found" error in Yii
body: <p>I use basic template of yii, i create a new controller manually in <code>Controllers</code> Folder and name it <code>CountryController.php</code> and put bellow codes in it.</p>
  
  <pre><code>&lt;?php
  
  namespace app\controllers;
  
  use Yii;
  use yii\web\Controller;
  
  class CountryController extends Controller
  {
      public function actionIndex()
      {
          return $this-&gt;render('index');
      }
  }
  </code></pre>
  
  <p>But when i type <code>http://localhost/sites/basic/web/index.php?r=country%2Findex</code> in browser i get following Exception: </p>
  
  <blockquote>
    <p>View not Found yii\base\ViewNotFoundException</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/sDYcM.jpg" rel="nofollow noreferrer">This is image of the error</a></p>
  
  <p>On the other side when i type <code>http://localhost/sites/basic/web/index.php?r=site%2Findex</code>in the browser it renders index view correctly.</p>
  
  <p><strong>Why this happen? can i create a Controller manually? How?</strong></p>