alexander-a2 / symfony-admin-bundle
Symfony Admin Bundle
Requires
- alexander-a2/symfony-datasheet-bundle: dev-main
- knplabs/knp-menu: ^3.0@dev
This package is auto-updated.
Last update: 2024-04-20 09:25:45 UTC
README
Installation
1.Register bundle
add lines
AlexanderA2\SymfonyAdminBundle\AdminBundle::class => ['all' => true], AlexanderA2\SymfonyDatasheetBundle\DatasheetBundle::class => ['all' => true],
to file
config/bundles.php
2.import routes
add lines:
admin: resource: '@AdminBundle/Resources/config/routing.yml'
to file
config/routes.yaml
3.Install assets
run
bin/console asset:install
4.Make symfony authentication
bin/console make:user
bin/console make:auth
bin/console make:registration-form
update db
bin/console make:migration
bin/console doctrine:migrations:migrate
Useful tips:
-
Use STOF doctrine extensions:
composer require stof/doctrine-extensions-bundle
configure it inconfig/packages/stof_doctrine_extensions.yaml
stof_doctrine_extensions: default_locale: en_US orm: default: timestampable: true tree: true
(and useuse TimestampableEntity;
in almost every entity -
Use bootstrap forms for twig