I have a list.html.twig file in which I have included another template file like:
<div class="panel-body">
{{ include('default/partials/groupSettings.html.twig') }}
</div>
And in my controller function following is given:
public function settingsListAction()
{
$settingsGroup = $this->getDoctrine()->getRepository('AppBundle:J1SettingGroup')->findAll();
return $this->render('default/settingsList.html.twig', array('settingsGroup' => $settingsGroup));
$settingsList = $this->getDoctrine()->getRepository('AppBundle:J1Setting')->findAll();
return $this->render('default/partials/groupSettings.html.twig', array('settingsList' => $settingsList));
}
But it only loading the first template and not the second.