Basic operations
In this cookbook, we assume that you have already created a Book resource.
List of resources

Create a grid for your resource using Symfony's Maker Bundle.
Note: To ease the setup, it is recommended to have an existing Doctrine Entity configured.
Magic! Here is the generated grid.
Configure the index operation in your resource.
Use the Symfony debug:router command to check the results.
Your route should look like this:
Resource creation page

Create a form type for your resource.
Configure the create operation in your resource.
Use the Symfony debug:router command to check the results.
Your route should look like this:
Resource edition page

Ensure you already created the Symfony form type in the previous section.
Configure the update operation in your resource.
Use the Symfony debug:router command to check the results.
Your route should look like this:
Resource details page

Configure the show operation in your resource.
Use the Symfony debug:router command to check the results.
Your route should look like this:
Now we need to configure the templates.
Last updated
Was this helpful?