nitra / e-commerce-admin-extensionsbundle

该软件包已被放弃且不再维护。没有推荐替代软件包。

nep 管理扩展包

安装: 544

依赖: 4

建议者: 0

安全: 0

类型:symfony-bundle

dev-master 2014-09-02 15:24 UTC

This package is auto-updated.

Last update: 2018-04-08 17:45:31 UTC


README

描述

该插件包旨在

  • 更改重定义插件包的路由名称,以确保模板和控制器的正确工作

    示例

  • 在应用路由之前,路由构建使用重定义的插件包名称,例如 NepProductBundle

    • Nitra_ NepProductBundle_Category_list
    • Nitra_ NepProductBundle_Category_edit
    • Nitra_ NepProductBundle_Category_update
    • Nitra_ NepProductBundle_Category_object
    • Nitra_ NepProductBundle_Category_batch
    • Nitra_ NepProductBundle_Category_new
    • Nitra_ NepProductBundle_Category_create
    • Nitra_ NepProductBundle_Category_filters
    • Nitra_ NepProductBundle_Category_scopes
  • 应用 ExtensionsAdminBundle 之后,我们得到的路由如下

    • Nitra_ProductBundle_Category_list
    • Nitra_ProductBundle_Category_list
    • Nitra_ProductBundle_Category_list
    • Nitra_ProductBundle_Category_object
    • Nitra_ProductBundle_Category_batch
    • Nitra_ProductBundle_Category_new
    • Nitra_ProductBundle_Category_create
    • Nitra_ProductBundle_Category_filters
    • Nitra_ProductBundle_Category_scopes

连接

  • composer.json
{
    ...   
    "require": {
        ...
        nitra/e-commerce-admin-extensionsbundle": "dev-master",
        ...
    }
    ...
}
  • app/AppKernel.php
<?php

    //...
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        //...
        $bundles = array(
            //...
            new Nitra\ExtensionsAdminBundle\NitraExtensionsAdminBundle(),
            //...
        );
        //...
        return $bundles;
    }
    //...
}

使用

NitraProductBundle_admin_nitra_product_bundle_Category:
    resource:   "@NitraNepProductBundle/Controller/Category/"
    type:       overwrite_admingenerator
    prefix:     /category