简体   繁体   中英

How to install SonataAdminBundle on Wamp?

I am try to install Sonata Admin Bundle on WAMP . To begin, add the dependent bundles to the vendor/bundles directory. Add the following lines to the file deps .

[SonatajQueryBundle]
    git=http://github.com/sonata-project/SonatajQueryBundle.git
    target=/bundles/Sonata/jQueryBundle

[SonataUserBundle]
    git=http://github.com/sonata-project/SonataUserBundle.git
    target=/bundles/Sonata/UserBundle

[SonataAdminBundle]
    git=http://github.com/sonata-project/SonataAdminBundle.git
    target=/bundles/Sonata/AdminBundle

[KnpMenuBundle]
    git=https://github.com/KnpLabs/KnpMenuBundle.git
    target=/bundles/Knp/Bundle/MenuBundle

[KnpMenu]
    git=https://github.com/KnpLabs/KnpMenu.git
    target=/knp/menu

[SonataDoctrineORMAdminBundle]
    git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
    target=/bundles/Sonata/DoctrineORMAdminBundle

Now problem in install these bundle in vendor. I run this commend php bin/vendors install but it's show Try to run ./bin/vendors install --reinstall

Is there something wrong with my Bundle. I am really not sure what to do about this. Please help.

I appreciate all the help.

Thanks!

You might be using incompatible versions of Symfony and SonataAdminBundle .

Also, you might be missing SonataBlockBundle and SonataCacheBundle which are required with the latest versions of SonataAdminBundle (have a look at the SonataAdmin installation reference ). Symfony , SonataAdminBundle and Doctrine2 only work together in specific combinations.

Suggestion: Try the relevant instructions in this tutorial , or better yet, clone this repository and configure it according to the instructions.

You'll have a working install, to which you can then add your existing bundle.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM