public function configureCrud(): Crud
{
return parent::configureCrud()
->overrideTemplate('layout', '@EasyAdminPrettyUrls/layout.html.twig')
->overrideTemplate('crud/field/association', '@EasyAdminPrettyUrls/crud/field/association.html.twig');
}
#[PrettyRoutesController(path: 'special')]
class AnyFancyController {
#[PrettyRoutesAction(path: 'list')]
public function index() {
// ....
}
}
#[PrettyRoutesAction(path: 'modify/{entityId?0}')]
public function edit(AdminContext $context)
{
return parent::edit($context);
}
#[PrettyRoutesController(actions: ['index', 'foo', 'bar'])]
class AnyFancyController {
// ...
}
/**
* You can also (optionally) specify your own dashboard controller if you're using more than one in your project.
* This will avoid to have an incorrect sidebar/user menu by addressing the request to the right dashboard controller
*/
#[PrettyRoutesController(actions: ['index', 'foo', 'bar'], dasboard: YourCrudController::class . '::yourCrudAction')]
class AnyFancyController {
// ...
}
#[PrettyRoutesController(customActions: ['foo', 'bar'])]
class AnyFancyController {
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.