title: Yii 2 static pages
body: <p>I can't show static pages. Try do it as described in doc here - <a href="http://stuff.cebe.cc/yii2-guide.pdf" rel="nofollow">http://stuff.cebe.cc/yii2-guide.pdf</a> (on page 100) but when I enable prettyurl, it doesn't work.</p>
  
  <p>Added in urlManager rules:</p>
  
  <pre><code>'urlManager' =&gt; array(
      'enablePrettyUrl' =&gt; true,
      'showScriptName' =&gt; false,
      'rules' =&gt; array(
          '' =&gt; 'site/index',
          'login' =&gt; 'site/login',
          'contacts' =&gt; 'site/contact',
          '&lt;view:(break)&gt;'=&gt;'/site/page?&amp;view=&lt;view&gt;',
      ),
  ),
  </code></pre>
  
  <p>then in SiteController added:</p>
  
  <pre><code>public function actions()
      {
          return [
              ...
              'page' =&gt; [
                  'class'=&gt;'yii\web\ViewAction',
              ],
          ];
      }
  </code></pre>
  
  <p>And then created views/site/pages/break.php</p>
  
  <pre><code>&lt;h1&gt;View static page Break&lt;/h1&gt;
  </code></pre>
  
  <p>But I get an error:
  <em>Not Found (#404)
  Unable to resolve the request: site/page?&amp;view=break</em></p>
  
  <p>If i disable prettyUrl:</p>
  
  <pre><code>//'enablePrettyUrl'=&gt;true
  </code></pre>
  
  <p>then i can see my page typing url: index.php?r=site/page&amp;view=break</p>
  
  <p>What's wrong with ViewAction?</p>