1、使用composer下载所需要的bundle以及对应的依赖
~~~
php composer.phar install
php composer.phar require sonata-project/admin-bundle dev-master
php composer.phar require sonata-project/doctrine-orm-admin-bundle dev-master
php composer.phar require sonata-project/doctrine-extensions
php composer.phar require ob/highcharts-bundle
~~~
2、激活所需bundle以及对应的依赖
`编辑:app/AppKernel.php`
~~~
<?php
public function registerBundles()
{
return array(
#……
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new Ob\HighchartsBundle\ObHighchartsBundle(),
);
}
~~~
3、安装资源到web目录
~~~
php app/console assets:install web
~~~
- 安装
- 配置
- web服务器
- DependencyInjection
- Serializer
- Ajax
- Annotation
- Controller
- Entity
- Components【组件】
- HttpFoundation【HTTP处理】
- Routing【路由处理】
- Form【表单处理】
- Validator【验证处理】
- ClassLoader【类加载】
- Templating【模板】
- Security【处理安全问题】
- Translation【语言翻译】
- Bundles【功能包】
- Doctrine
- entityManager
- entityRespository
- createQueryBuilder
- createNativeQuery
- find
- DoctrineBundle
- doctrine_config
- DoctrineFixturesBundle
- KnpMenuBundle
- KnpPaginatorBundle
- FOSUserBundle
- FOSRestBundle
- FOSCommentBundle
- FOSElasticaBundle
- SonataCoreBundle
- SonataBlockBundle
- SonataMediaBundle
- SonataAdminBundle
- DoctrineORMAdminBundle
- Sonata
- Install_Sonata
- Config_Sonata
- BlockService
- Custom_BlockService
- Custom_Admin
- Problems