Home>

Tell me, is it possible in symfony, when creating a controller via bin/console make..., to disable auto-generation of the twig template?

  • Answer # 1

    bin/console make:controller --help

    You can also generate the controller alone, without template with this option:
    php bin/console make:controller --no-template

  • Answer # 2

    bin/console make:controller --help

    You can also generate the controller alone, without template with this option:
    php bin/console make:controller --no-template