title: access to subfolders controller and view in YII2
body: <p>hi i built a controller in a folder inside controllers folder
  i tryed to access my controller and its view but i couldnt always error 404
  please tell me what is the problem</p>
  
  <p>here is the details
  <strong>this is SiteUserController in Controllers/userzone/ folder</strong></p>
  
  <pre><code>namespace app\controllers\userzone;
  
  
  use yii\web\Controller;
  use app\models\UserZone;
  /**
   * Default controller for the `dashboard` module
   */
  class SiteUserController extends Controller
  {
      /**
       * Renders the index view for the module
       * @return string
       */
      public function actionIndex()
      {
          $id = \Yii::$app-&gt;user-&gt;id;
  
          $model = UserZone::find()-&gt;where(['id_zone'=&gt;$id])-&gt;with('user')-&gt;one();
  
          //   $model-&gt;joinWith('companiesCompany');
  
  
          return $this-&gt;render('siteuser/index',[
              'model'=&gt;$model
          ]);
      }
  }
  </code></pre>
  
  <p><strong>the view file is in Views/siteuser/index.php directory .</strong>
  <br>
  <strong>i changed url manager to</strong> </p>
  
  <pre><code>'urlManager' =&gt; [
          'enablePrettyUrl' =&gt; true,
          'showScriptName' =&gt; false,
          'rules' =&gt; [
              'userzone/&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'userzone/&lt;controller&gt;/&lt;action&gt;',
  
          ],
      ],
  </code></pre>