title: Rendering a Static Page in Yii that resides in the Current Theme's Views
body: <p>Ok I have a controller class in Yii that I want to use a different view folder aside from using its default view folder.</p>
  
  <p>The natural behavior is when a <code>$this-&gt;render("&lt;view file&gt;");</code> you would use the following to navigate your view file in the project...</p>
  
  <blockquote>
    <p>"//" navigates project default view folder</p>
    
    <p>"/" navigates current theme view folder</p>
    
    <p>or do not use anything to select a view automatically in the
    controller's default view folder</p>
  </blockquote>
  
  <p>but my problem is i'm not rendering a <strong>view file</strong> but a <strong>STATIC PAGE</strong> that resides in <code>/pages</code> folder of a certain view folder. The static page I want to navigate is a static page the resides <strong>in my current theme folder</strong> views but the default is the controller navigates the static page inside the <code>/protected/view</code> folder</p>
  
  <p>I tried also this override to modify the controller's view folder. I put this code in my controller that I want to render static pages in a theme folder</p>
  
  <pre><code>public function init(){
      $this-&gt;layout = "//layouts/script";
      $this-&gt;viewPath = "/js";
  }
  </code></pre>
  
  <p>but the problem is the viewPath is readOnly variable.</p>
  
  <blockquote>
    <p><em>Now my question is how I can render static pages that resides in my current theme's view folders?</em></p>
  </blockquote>
  
  <p>NOTE: please if you don't understand my question, please don't down vote. I'm open to change and explain my problem for you as possible as I can</p>