DashboardBundle
Dashboard Bundle for symfony >= 3.3
This bundle will require symfony/assetic-bundle symfony's document for assetic : https://symfony.com/doc/current/assetic/asset_management.html
####Requirements :
- twbs/bootstrap 4.0.0-beta
- add
"twbs/bootstrap": "4.0.0-beta"
to your composer.json - then run
composer update
- add
####Installation :
-
composer require kodoyosa/dashboard
-
add
new Kodoyosa\DashboardBundle\KodoyosaDashboardBundle(),
to $bundles[] in registerBundles() from app/AppKernel.php -
call the routes in app/config/routing.yml. Basically you can add :
kodo_dashboard: resource: "@KodoyosaDashboardBundle/Resources/config/routing.yml" prefix: /dashboard
-
Assetic configuration in app/config/config.yml to get access to
bootstrap_js
andbootstrap_css
# Assetic Configuration assetic: filters: cssrewrite: ~ assets: bootstrap_js: inputs: - '%kernel.root_dir%/../vendor/twbs/bootstrap/assets/js/vendor/popper.min.js' - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/js/bootstrap.js' bootstrap_css: inputs: - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/css/bootstrap.min.css' - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/css/bootstrap-grid.min.css' - '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/css/bootstrap-reboot.min.css'
-
Update database schema :
php bin/console doctrine:schema:update --force
-
run : `php bin/console assetic:dump
That's it !