vespolina / commerce-bundle
Vespolina Commerce bundle。将vespolina库与Symfony2集成
v0.5-alpha
2014-04-09 19:19 UTC
Requires
- php: >=5.4.0
- friendsofsymfony/jsrouting-bundle: *
- friendsofsymfony/rest-bundle: *
- omnipay/omnipay: 1.1.*
- sp/bower-bundle: *
- symfony/symfony: >=2.1
- vespolina/action: *
- vespolina/commerce: dev-master
- vespolina/taxonomy: dev-master
Requires (Dev)
- phpspec/phpspec: dev-master
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-09-18 20:49:09 UTC
README
Vespolina Ecommerce与Symfony2的集成
管理页面有JavaScript依赖项,可以使用bower通过SpBowerBundle处理。如果您没有安装bower,可以使用npm安装它
$ npm install -g bower
1) 安装VespolinaCommerceBundle
使用composer.phar或composer二进制文件安装
$ php composer.phar require vespolina/commerce-bundle dev-master
2) 启用bundle
在kernel中启用bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new FOS\RestBundle\FOSRestBundle(), new Sp\BowerBundle\SpBowerBundle(), new Vespolina\CommerceBundle\VespolinaCommerceBundle(), ); }
3) 必需的配置
# app/config/config.yml sp_bower: bundles: VespolinaCommerceBundle: ~ vespolina_commerce: db_driver: mongodb # mongodb or orm
4) 路由选项
# app/config/routing.yml vespolina_admin: resource: "@VespolinaCommerceBundle/Resources/config/routing/admin.yml" prefix: /admin/ vespolina_commerce_checkout: resource: "@VespolinaCommerceBundle/Resources/config/routing/checkout.xml" prefix: / vespolina_commerce_cart: resource: "@VespolinaCommerceBundle/Resources/config/routing/cart.xml" prefix: / vespolina_commerce_product: resource: "@VespolinaCommerceBundle/Resources/config/routing/product.xml" prefix: / vespolina_taxonomy: resource: "@VespolinaCommerceBundle/Resources/config/routing/taxonomy.xml" prefix: /