The PhlexibleRedirectBundle adds support for redirection in phlexible.
- Download PhlexibleRedirectBundle using composer
- Enable the Bundle
- Update your database schema
- Clear the symfony cache
Add PhlexibleRedirectBundle by running the command:
$ php composer.phar require phlexible/ct-bundle "~1.0.0"
Composer will install the bundle to your project's vendor/phlexible
directory.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Phlexible\Bundle\RedirectBundle\PhlexibleRedirectBundle(),
);
}
Now that the bundle is set up, the last thing you need to do is update your database schema because the redirect bundle includes entities that need to be installed in your database.
For ORM run the following command.
$ php app/console doctrine:schema:update --force
If you access your phlexible application with environment prod, clear the cache:
$ php app/console cache:clear --env=prod