Symfony 的 CRM Bundle

安装数量: 3,689

依赖项: 3

建议者: 4

安全性: 0

星星: 3

关注者: 6

分支: 1

类型:symfony-bundle

0.6.4 2017-11-03 15:08 UTC

This package is not auto-updated.

Last update: 2024-09-09 06:28:14 UTC


README

Build Status Coverage Status License

Latest Stable Version Latest Unstable Version Total Downloads

Symfony 的 CRM Bundle

安装

先决条件

  • 拥有一个工作的 Symfony2 环境
  • 创建了一个工作的 Symfony2 应用(包括你的数据库和数据库连接)
  • 已安装 composer(这里在 /usr/local/bin/composer,并且 /usr/local/bin 在你的路径中)

可选

  • 已安装 blast-project/core-bundle,或者如果没有,请遵循 Core bundle 的 README 指令

下载

  $ composer require libre-informatique/crm-bundle dev-master

如果失败并显示消息

- libre-informatique/crm-bundle dev-master 需要 libre-informatique/core-bundle dev-master -> 没有找到匹配的包。

首先尝试安装 libre-informatique/core-bundle

$ composer require libre-informatique/core-bundle dev-master

Sonata bundle

不要忘记配置 SonataAdminBundle。例如。

    // app/AppKernel.php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            
            // Sonata
            new Sonata\CoreBundle\SonataCoreBundle(),
            new Sonata\BlockBundle\SonataBlockBundle(),
            new Knp\Bundle\MenuBundle\KnpMenuBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new Sonata\AdminBundle\SonataAdminBundle(),
            
            // your personal bundles
        );
    }
    // ...
# app/config/routing.yml
admin:
    resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
    prefix: /
  
_sonata_admin:
    resource: .
    type: sonata_admin
    prefix: /
# app/config/config.yml
sonata_block:
    default_contexts: [cms]
    blocks:
        # Enable the SonataAdminBundle block
        sonata.admin.block.admin_list:
            contexts:   [admin]
        # Your other blocks

但是,请参阅源文档以获取最新信息:https://sonata-project.org/bundles/admin/2-3/doc/reference/installation.html

请注意,prefix 的值是 / 而不是 Sonata Project 建议的 /admin。这意味着这个访问是通用的,而不是特定的 "后端" 界面。这是专注于专业工作流程的软件包的一个特性。

"libre-informatique" bundle

编辑你的 app/AppKernel.php 文件,并在这里添加所需的 bundle

    // app/AppKernel.php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            
            // The libre-informatique bundles
            new Blast\CoreBundle\BlastCoreBundle(),
            new Librinfo\CRMBundle\LibrinfoCRMBundle(),
            
            // your personal bundles
        );
    }
    // ...

完成

发布资产...

$ app/console assets:install --symlink