Following structure:
apps/backend/
apps/frontend/
modules/
account/template/_menu.php
account/template/test.php
settings/template/indexSuccess.php
I do include _menu in test.php with the following code:
<?php slot('menu'); ?>
<?php include(dirname(__FILE__).'/_menu.php') ; ?>
<?php end_slot() ?>
How can I include the file _menu.php in indexSuccess.php?
Thanks!
Gunnar
You want to use
include_partialfrom the indexSuccess.php template:You can read more about it in Symfony API Docs.