The generator.yml
power for your
Symfony2
backends

Table of contents
    Fork me on GitHub

    Params section of generator.yml

    Bundle in Acme/Bundle/TestBundle ?

    If you have "non-standard" structure of bundle and your bundles namespaces are Acme/Bundle/TestBundle and not Acme/TestBundle, you have to update the generator.yml like that :

    params:
      model: ......
      namespace_prefix: Acme
      subfolder: Bundle
      bundle_name: TestBundle
    

    Custom stylesheets

    Sometimes, you'll want to add your own css in the theme. Two way to do that :

    In the config.yml

    admingenerator_generator:
        stylesheets:
          - { path: bundles/mybundle/css/backend.css }
          - { path: bundles/mybundle/css/print.css, media: print }
    

    In the generator.yml

    params:
      model: ......
      stylesheets:
        - bundles/mybundle/css/backend.css
        - { path: bundles/mybundle/css/tv.css, media: tv }