File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ that renders a template when there is no specific logic. To keep the same
3838template as before, request attributes are extracted before the template is
3939rendered::
4040
41- function render_template($request)
42- {
41+ function render_template($request) {
4342 extract($request->attributes->all(), EXTR_SKIP);
4443 ob_start();
4544 include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
@@ -106,8 +105,7 @@ Here is the updated and improved version of our framework::
106105 use Symfony\Component\HttpFoundation\Response;
107106 use Symfony\Component\Routing;
108107
109- function render_template($request)
110- {
108+ function render_template($request) {
111109 extract($request->attributes->all(), EXTR_SKIP);
112110 ob_start();
113111 include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
You can’t perform that action at this time.
0 commit comments