libre-informatique / crm-bundle
Symfony 的 CRM Bundle
0.6.4
2017-11-03 15:08 UTC
Requires
- php: >=7.1
- blast-project/base-entities-bundle: 0.6.4
- blast-project/core-bundle: 0.6.4
- blast-project/outer-extension-bundle: 0.6.4
- blast-project/utils-bundle: 0.6.4
- friendsofsymfony/jsrouting-bundle: >=1.6
- jeroendesloovere/vcard-bundle: >=1.2
- sparkling/vat-bundle: >=0.1
- stof/doctrine-extensions-bundle: >=1.2
- symfony/symfony: >=3.2
Requires (Dev)
- phpunit/phpunit: ^6.4
- symfony/phpunit-bridge: >=3.2
This package is not auto-updated.
Last update: 2024-09-09 06:28:14 UTC
README
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