title: Yii2 How to split layout file to separate header and footer?
body: <p>I am new to <code>YII2</code>, so this can be very basic question.</p>
  
  <p>I have set up initial application. I have setup theme for my <code>YII2</code> application <code>/themes/standard</code></p>
  
  <p>Now, There is a default layout file <code>themes/standard/layouts/main.php</code> - This has the html code for header and footer</p>
  
  <p>I want to separate the header code into <code>themes/standard/layouts/header.php</code> and footer into another file</p>
  
  <p>I tried something like below code in <code>main.php</code></p>
  
  <pre><code>&lt;?php $this-&gt;render("header"); ?&gt;
  </code></pre>
  
  <p>tried this as well</p>
  
  <pre><code>&lt;?php $this-&gt;render("//layouts/header"); ?&gt;
  </code></pre>
  
  <p>But It doesn't render the content.
  I don't want to absolute path since I have theming
  Can you people help with this one?</p>