Skip to content

Commit

Permalink
Reword
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 4, 2025
1 parent 66d17d1 commit b8e885f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,10 @@ The following example shows all kinds of actions in practice::

.. tip::

``renderInvoice()`` behave like ``Symfony controllers`_,
so you can do anything you usually do in a controller.
CRUD controllers in EasyAdmin extend the `Symfony base controller class`_.
When actions are defined as methods of CRUD controllers, they can use any
of the shortcuts and utilities available in regular `Symfony controllers`_,
such as ``$this->render()``, ``$this->redirect()``, and others.

Custom actions can define the ``#[AdminAction]`` attribute to
:ref:`customize their route name, path and methods <crud_routes>`::
Expand Down Expand Up @@ -725,4 +727,5 @@ by EasyAdmin::
}

.. _`FontAwesome`: https://fontawesome.com/
.. _`Symfony base controller class`: https://symfony.com/doc/current/controller.html#the-base-controller-class-services
.. _`Symfony controllers`: https://symfony.com/doc/current/controller.html

0 comments on commit b8e885f

Please sign in to comment.