This bundle provides you with an easy way to create CRUD screens in your application. It is based on several other bundles:
- doctrine/doctrine-bundle for persistence
- prezent/grid-bundle for lists/grids
- babdev/pagerfanta-bundle for pagination
- zurb/foundation-sites as CSS framework
- Installation (see below)
- Getting started
- CRUD configuration
- Extending the base controller
- Templating
- Translations
- Delete modals
- Events
This bundle can be installed using Composer. Tell composer to install the bundle:
$ php composer.phar require prezent/crud-bundle
Then, activate the bundle and its dependencies in your kernel:
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// Assuming a Symfony standard edition, just add these bundles
new BabDev\PagerfantaBundle\BabDevPagerfantaBundle(),
new Prezent\GridBundle\PrezentGridBundle(),
new Prezent\CrudBundle\PrezentCrudBundle(),
);
}
This bundle does not need to be configured, but you can optionally configure the PagerfantaBundle and the GridBundle. See their respective documentation sections.