hyperbolaa / ueditor
ueditor for symfony2
dev-master / 1.0.x-dev
2015-12-24 05:16 UTC
Requires
- php: >=5.5.0
This package is not auto-updated.
Last update: 2024-09-18 18:40:16 UTC
README
Symfony2 中的 ueditor 生成支持。
安装
步骤 1: Composer
将以下 require 行添加到 composer.json
文件中
{ "require": { "hyperbolaa/ueditor": "dev-master" } }
然后使用 Composer 在项目中实际安装它
php composer.phar install
您也可以使用以下命令一步完成
$ php composer.phar require hyperbolaa/ueditor "dev-master"
步骤 2: 启用组件
在 kernel 中启用组件
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Hyperbolaa\Ueditor\HyperbolaaUeditorBundle(), ); }
步骤 3: 启用路由
将以下内容添加到您的路由配置 app/config/routing.yml
hyperbolaa_ueditor: resource: "@HyperbolaaUeditorBundle/Controller/" type: annotation
配置
您可以在 app/config/config.yml
中配置一些选项。这些是默认值
hyperbolaa_ueditor: author: hyperbolaa find_best_mask: true find_from_random: false absolute_url: true