From 29e34a36d65e452e95a40c8cbcd81d3ccbb3bde9 Mon Sep 17 00:00:00 2001 From: asandjivy Date: Thu, 18 Aug 2016 11:02:25 +0200 Subject: [PATCH 1/2] Update controllers.rst --- best_practices/controllers.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/best_practices/controllers.rst b/best_practices/controllers.rst index b30b27a15de..c11749e4155 100644 --- a/best_practices/controllers.rst +++ b/best_practices/controllers.rst @@ -85,10 +85,10 @@ it more difficult to know which template is being rendered. It also makes it less obvious to beginners that a controller should always return a Response object (unless you're using a view layer). -How the Controller Looks +What does the Controller look like ------------------------ -Considering all this, here is an example of how the controller should look +Considering all this, here is an example of what the controller should look like for the homepage of our app: .. code-block:: php From a0fe22011e00a9bf6cbcf56d783aa6294f062291 Mon Sep 17 00:00:00 2001 From: asandjivy Date: Thu, 18 Aug 2016 11:06:45 +0200 Subject: [PATCH 2/2] Update controllers.rst --- best_practices/controllers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/best_practices/controllers.rst b/best_practices/controllers.rst index c11749e4155..98e55f4eef7 100644 --- a/best_practices/controllers.rst +++ b/best_practices/controllers.rst @@ -86,7 +86,7 @@ it less obvious to beginners that a controller should always return a Response object (unless you're using a view layer). What does the Controller look like ------------------------- +---------------------------------- Considering all this, here is an example of what the controller should look like for the homepage of our app: