This topic contains 3 replies, has 2 voices, and was last updated by antoinedeferre 6 years, 3 months ago.
- Topic
Hi,
I’m aunching a new projet based on an open source framework using Symfony 2.7, Doctrine and OROCRM.
I try to create a new datagrid, this is what I did :- create resources/config/datagrid.yml, with a new “custom_download” inside.
- update DependencyInjection/MyBundleExtension.php to load my new datagrid.yml.
- update my twig view :
12345{% import 'PimDataGridBundle::macros.html.twig' as dataGrid %}{% block content %}{{ dataGrid.renderGrid('custom_download') }}{% endblock %}This code is already working in another view, with an existing datagrid.
But with my new one, I got a crash with this error in the logfile :CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: “An exception has been thrown during the rendering of a template (“A configuration for “custom_download” datagrid was not found.”)
Why does my new datagrid.yml doesn’t work ?
Thanks for your help !
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.