Home Sonata Admin Bundle - Custom Template
Reply: 0

Sonata Admin Bundle - Custom Template

user897 Published in March 18, 2018, 1:48 am

I want to custome my template.

service.yml :

        class: AppBundle\Admin\ParametreAdmin
        arguments: [~, AppBundle\Entity\ParametreEntity, ~]
            - { name: sonata.admin, manager_type: orm, group: Options, label: Globaux}
            - [ setTemplate, [list, "@SonataAdmin/CRUD/Special/list_parametre_globaux.html.twig"]]
        public: true

list_parametre_globaux.html.twig :

{% extends base_template %}

        {{ object.pourcentageMise }}

I have this error :

(1/1) ServiceNotFoundException The service "admin.globaux" has a dependency on a non-existent service "SonataAdmin/CRUD/Special/list_parametre_globaux.html.twig".

I don't understand why it doesnt work.

thank for your help

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.236012 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO