Require the bundle in your composer.json file:
{
"require": {
"egeloen/ckeditor-bundle": "~2.0",
}
}
Register the bundle:
// app/AppKernel.php
public function registerBundles()
{
return array(
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
// ...
);
}
Install the bundle:
$ composer update
Add Ivory CKEditor bundle to your deps file:
[IvoryCKEditorBundle]
git=http://github.com/egeloen/IvoryCKEditorBundle.git
target=bundles/Ivory/CKEditorBundle
version=1.1.9
I recommend you to specify a version in order to easily maintain your project. The versions are available in the CHANGELOG.
Autoload the Ivory CKEditor bundle namespaces:
// app/autoload.php
$loader->registerNamespaces(array(
'Ivory\\CKEditorBundle' => __DIR__.'/../vendor/bundles',
// ...
);
Register the bundle:
// app/AppKernel.php
public function registerBundles()
{
return array(
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
// ...
);
}
Run the vendors script:
$ php bin/vendors install
Warning, if you don't register the bundle in the kernel before installing it, the assets will not be populated in
your web
directory. To fix it, simply run:
$ php app/console assets:install --symlink
Be aware that the Symfony 2.0 version of the bundle is no longer maintain.