title: Template inheritance in Plugin on Shopware 5.2.24 doesn't work
body: <p>I try the example program "Slogan of the day" on shopware 5.2.24</p>
  
  <p>But the code doesn't work.</p>
  
  <p>In the file Bootstrap.php, I defined the 3 important functions.
  In the function install, the callback function "onFrontendPostDispatch" will be called.</p>
  
  <pre><code>public function install()
  {
      $this-&gt;subscribeEvent(
          'Enlight_Controller_Action_PostDispatchSecure_Frontend',
          'onFrontendPostDispatch'
      );
  
      $this-&gt;createConfig();
  
      return true;
  }
  
  private function createConfig()
  {
      $this-&gt;Form()-&gt;setElement(
          'select',
          'font-size',
          array(
              'label' =&gt; 'Font size',
              'store' =&gt; array(
                  array(12, '12px'),
                  array(18, '18px'),
                  array(25, '25px')
              ),
              'value' =&gt; 12
          )
      );
  
      $this-&gt;Form()-&gt;setElement('boolean', 'italic', array(
          'value' =&gt; true,
          'label' =&gt; 'Italic'
      ));
  }
  </code></pre>
  
  <p>In this callback function, I definded the parameters for the new tpl file and the location of the new tpl file: [ _ <em>DIR</em> _ . '/Views' ]</p>
  
  <pre><code>public function onFrontendPostDispatch(Enlight_Event_EventArgs $args)
  {
      /** @var \Enlight_Controller_Action $controller */
      $controller = $args-&gt;get('subject');
      $view = $controller-&gt;View();
  
      $view-&gt;addTemplateDir(
          __DIR__ . '/Views'
      );
  
      $view-&gt;assign('sloganSize', $this-&gt;Config()-&gt;get('font-size'));
      $view-&gt;assign('italic', $this-&gt;Config()-&gt;get('italic'));
      $view-&gt;assign('slogan', $this-&gt;getSlogan());
  
  }
  
  public function getSlogan()
  {
      return array_rand(
          array_flip(
              array(
                  'My Slogan Number 1',
                  'My Slogan Number 2',
                  'My Slogan Number 3',
              )
          )
      );
  }
  </code></pre>
  
  <p>The new tpl file is:</p>
  
  <pre><code>{extends file="parent:frontend/index/index.tpl"}
  
  {block name="frontend_index_navigation_categories_top_include"}
  
  &lt;style&gt;
      .slogan-box {
          width:100%;
          text-align:center;
      }
      .slogan {
          {if $italic}font-style:italic;{/if}
          font-size:{$sloganSize}px;
      }
  &lt;/style&gt;
  
  &lt;div class="slogan-box"&gt;
      &lt;span class="slogan"&gt;{$slogan}&lt;/span&gt;
  &lt;/div&gt;
  
  {$smarty.block.parent}
  
  {/block}
  </code></pre>
  
  <p>The location of new tpl file is:</p>
  
  <p><a href="https://i.stack.imgur.com/IeX3H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IeX3H.png" alt="enter image description here"></a></p>
  
  <p>But in the Homepage, I can't see the slogan... It doesn't work. </p>
  
  <p>The file Bootstrap.php works fine. But the slogan can't be seen on the homepage.</p>
  
  <p>Is the connection between the Bootstrap.php und index.tpl wrong?</p>
  
  <p>Does anyone know where i have gone wrong? Thans a lot!!!</p>