Home Sonata Admin Bundle - Custom Template
Reply: 0

Sonata Admin Bundle - Custom Template

user4755
1#
user4755 Published in September 19, 2018, 9:08 am

I want to custome my template.

service.yml :

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

list_parametre_globaux.html.twig :

{% extends base_template %}

    <div>
        {{ object.pourcentageMise }}
    </div>

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

share|improve this question
  • which sonata admin version you are using? – Jim Panse Feb 16 at 14:57

1 Answer 1

active oldest votes
up vote 0 down vote
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO