foreverglory / admin-bundle
Symfony AdminBundle
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:symfony-bundle
Requires
- foreverglory/assets-bundle: dev-master
- foreverglory/menu-bundle: dev-master
- foreverglory/setting-bundle: dev-master
- foreverglory/theme-bundle: dev-master
- foreverglory/web-bundle: dev-master
- php-kit/composer-bower-plugin: ~1.0
- symfony/symfony: ~2.3|~3.0
This package is not auto-updated.
Last update: 2024-11-09 19:45:41 UTC
README
GloryAdminBundle 基于 Symfony,使用 AdminLTE 前端而开发的后台管理
使用
Composer
composer require foreverglory/admin-bundle
or
add composer.json file, after composer update
{ require: { "foreverglory/theme-bundle": "dev-master" } }
Kernel
//app/AppKernel.php public function registerBundles() { return array( // require bundles new Sp\BowerBundle\SpBowerBundle(), new Glory\Bundle\SettingBundle\GlorySettingBundle(), new Glory\Bundle\MenuBundle\GloryMenuBundle(), new Glory\Bundle\WebBundle\GloryWebBundle(), // core bundle new Glory\Bundle\AdminBundle\GloryAdminBundle(), // more ... ); }
Configure
#app/config/config.yml sp_bower: bundles: # 启用 bower 资源 GloryAdminBundle: ~ glory_setting: ~ glory_menu: ~ glory_admin: # css,js资源,将替换默认 stylesheets: ~ javascripts: ~ # 仪表盘配置 dashboard: - { include: AppBundle:Block:analysis.html.twig } - { controller: AppBundle:Dashboard:calendar } # more ...
#app/config/routing.yml glory_admin: resource: "@GloryAdminBundle/Resources/config/routing.yml" prefix: /
#app/config/security.yml security: access_control: - { path: ^/admin, role: ROLE_ADMIN }
Data
- install assetic
php app/console sp:bower:install
- install menu database
php app/console gloryadmin:install menu