title: Magento - How to create a getChildHtml block and call it in another
body: <p>Currently i'm working to redesign a custom Magento template.</p>
  
  <p>I'm facing the following problem.</p>
  
  <p>In file called: 2columns-left.phtml i am facing code like this several times:</p>
  
  <pre><code>&lt;?php echo $this-&gt;getChildHtml('global_messages') ?&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;?php echo $this-&gt;getChildHtml('global_messages') ?&gt;
  </code></pre>
  
  <p>These code lines makes me think that they are calling blocks and the content in them by getting the name of .phtml file.</p>
  
  <p>So i have file called <code>slider_layred_nav.phtml</code> and i want to call all the content in it in file <code>2columns-left.phtml</code> so i tried this code:</p>
  
  <p>So in file <code>2columns-left.phtml</code> i put:</p>
  
  <pre><code>&lt;?php echo $this-&gt;getChildHtml('slider_layred_nav') ?&gt;
  </code></pre>
  
  <p>But it is just not displaying anything.</p>
  
  <p>I assume that i have to do something with the <code>layout</code> but i have no idea what.</p>
  
  <p>Can you help me our resolve this mystery ?</p>
  
  <p>Thanks in advance!</p>