refactored some more intros
This commit is contained in:
parent
b933d83595
commit
9bc45d5cdf
2 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
### Router
|
### 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.
|
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.
|
I will use [FastRoute](https://github.com/nikic/FastRoute) in this tutorial. But as always, you can pick your own favorite package.
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
### Controllers
|
### 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...
|
to be continued...
|
Loading…
Reference in a new issue