title: View inside a view using CakePHP 3
body: <p>Is it possible to display a view inside another view?</p>
  
  <p>I have the following code:</p>
  
  <pre><code>&lt;?php if ($result-&gt;type === 'brochure') : ?&gt;
      &lt;div&gt;
          // massive template block
      &lt;/div&gt;
  &lt;?php elseif ($result-&gt;type === 'library') : ?&gt;
      &lt;div&gt;
          // massive template block different from above
      &lt;/div&gt;
  &lt;?php else : ?&gt;
      &lt;div&gt;
          // massive template block different from both above
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I want to replace those with a content block so to speak. I had a look at <a href="https://book.cakephp.org/3.0/en/views.html#using-view-blocks" rel="nofollow noreferrer">view blocks</a> but I'm either using it wrong or it doesn't do what I want it to do.</p>
  
  <p>Is this possible in CakePHP 3?</p>