PHP code example of symkit / crud-bundle
1. Go to this page and download the library: Download symkit/crud-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
symkit / crud-bundle example snippets
#[Route('/admin/products')]
final class ProductController extends AbstractCrudController
{
protected function getEntityClass(): string => Product::class;
protected function getFormClass(): string => ProductType::class;
protected function getRoutePrefix(): string => 'admin_product';
#[Route('/', name: 'admin_product_list')]
public function index(Request $request): Response => $this->renderIndex($request);
}