phlexible / redactor-bundle
phlexible redactor bundle
1.0.0
2018-07-30 14:43 UTC
Requires
- php: >=5.6.0
- phlexible/gui-bundle: ~1.3
Requires (Dev)
- phpunit/phpunit: ~5.7
- symfony/config: ~2.8
- symfony/dependency-injection: ~2.8
- symfony/http-kernel: ~2.8
This package is auto-updated.
Last update: 2024-09-08 06:42:25 UTC
README
PhlexibleSuggestBundle 为 phlexible 中的元素类型添加了对 redactor 富文本编辑器字段的支持。
安装
- 使用 composer 下载 PhlexibleRedactorBundle
- 启用 Bundle
- 清除 symfony 缓存
步骤 1:使用 composer 下载 PhlexibleRedactorBundle
运行以下命令添加 PhlexibleRedactorBundle
$ php composer.phar require phlexible/redactor-bundle "~1.0.0"
Composer 将将此包安装到您的项目的 vendor/phlexible
目录。
步骤 2:启用 Bundle
在 Kernel 中启用 Bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\RedactorBundle\PhlexibleRedactorBundle(), ); }
步骤 3:清除 symfony 缓存
如果您使用 prod 环境访问 phlexible 应用程序,请清除缓存
$ php app/console cache:clear --env=prod