From 9bc45d5cdff8d142ee19c418dae0b60221c2d52e Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 14 Sep 2014 20:13:38 +0200 Subject: [PATCH] refactored some more intros --- 5-router.md | 2 ++ 6-controllers.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/5-router.md b/5-router.md index 1af5383..cc178a2 100644 --- a/5-router.md +++ b/5-router.md @@ -2,6 +2,8 @@ ### Router +A router dispatches to different handlers depending on rules that you have set up. + With your current setup it does not matter what URL is used to access the application, it will always result in the same response. So let's fix that now. I will use [FastRoute](https://github.com/nikic/FastRoute) in this tutorial. But as always, you can pick your own favorite package. diff --git a/6-controllers.md b/6-controllers.md index e028b68..29537bf 100644 --- a/6-controllers.md +++ b/6-controllers.md @@ -2,6 +2,6 @@ ### Controllers -A quick definition before we start. When I talk about a controller in this tutorial then I am just referring to a class that has handler methods. I am not talking about [MVC (Model-View-Controller)](http://martinfowler.com/eaaCatalog/modelViewController.html) controllers. MVC can't be implemented properly in PHP anyways, at least not in the way it was originally conceived. So forget about MVC and instead let's worry about [separation of concerns](http://en.wikipedia.org/wiki/Separation_of_concerns). +When I talk about a controller in this tutorial then I am just referring to a class that has handler methods. I am not talking about [MVC (Model-View-Controller)](http://martinfowler.com/eaaCatalog/modelViewController.html) controllers. MVC can't be implemented properly in PHP anyways, at least not in the way it was originally conceived. So forget about MVC and instead let's worry about [separation of concerns](http://en.wikipedia.org/wiki/Separation_of_concerns). to be continued... \ No newline at end of file