vespolina/commerce-bundle

Vespolina Commerce bundle。将vespolina库与Symfony2集成

安装量: 2,337

依赖者: 1

建议者: 0

安全性: 0

星标: 9

关注者: 6

分支: 6

开放问题: 5

语言:JavaScript

类型:symfony-bundle

v0.5-alpha 2014-04-09 19:19 UTC

This package is auto-updated.

Last update: 2024-09-18 20:49:09 UTC


README

Build Status Total Downloads Latest Stable Version

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:   /