Skip to content

Prezent/prezent-crud-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prezent/crud-bundle

Build Status

Easy CRUD for Symfony

namespace AppBundle\Controller;

use AppBundle\Entity\Product;
use AppBundle\Form\Type\ProductType;
use AppBundle\Grid\Type\ProductGridType;
use Prezent\CrudBundle\Controller\CrudController;
use Prezent\CrudBundle\Model\Configuration;

class ProductController extends CrudController
{
    protected function configure(Request $request, Configuration $config)
    {
        $config
            ->setEntityClass(Product::class)
            ->setFormType(ProductType::class)
            ->setGridType(ProductGridType::class)
        ;
    }
}

The documentation can be found in Resources/doc