Skip to content

Fix opening brace placement #15949

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

Merged
merged 1 commit into from
Oct 19, 2021
Merged
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
6 changes: 2 additions & 4 deletions create_framework/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ that renders a template when there is no specific logic. To keep the same
template as before, request attributes are extracted before the template is
rendered::

function render_template($request)
{
function render_template($request) {
extract($request->attributes->all(), EXTR_SKIP);
ob_start();
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
Expand Down Expand Up @@ -106,8 +105,7 @@ Here is the updated and improved version of our framework::
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing;

function render_template($request)
{
function render_template($request) {
extract($request->attributes->all(), EXTR_SKIP);
ob_start();
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
Expand Down