KnpRadBundle
KnpRadBundle copied to clipboard
[DataTable] "bootstrap" option should be renamed to "theme".
trafficstars
And we should be able to decalre them through configuration maybe. For the moment, it's too error prone.
Currently there is a restriction due to the build of theme path :
'KnpRadBundle:Twig:Datatable/' . $options['bootstrap'] . '/datatable.html.twig'
This prevents any other theme provider than "KnpRadBundle:Twig:Datatable" folder.
So I suggest to externalize "Default" and "Bootstrap" theme into a config file, and to inject the theme list to the TwigExtension, enabling too to specify which theme is the default one.
Yes, would be far better!