Skip to content

[book] [controller] Added documentation for static pages #2418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ working with forms, for example::
.. index::
single: Controller; Base controller class

Creating Static Pages
---------------------

You can create a static page without creating any controller. Using only the
routing file, you just have to indicate the "FrameworkBundle:Template:template"
as the controller and the logical path of your template.

Use it ! See :doc:`/cookbook/templating/render_without_controller`.

The Base Controller Class
-------------------------

Expand Down