I have noticed that you are using ControllerBase
instead of BaseController
.
What is the reason for that? Why to change the order and to make an exception?
|
Jul '14 |
3 |
1229 |
0 |
Because that's not an actual controller. (In fact, you could declare the base controller as an abstract class).
So to avoid confusion with being an actual controller (with the name base
), the naming is different.
@renskill yeah, but then why Laravel uses it differently:
http://laravel.com/docs/controllers
Is ControllerBase the way the PSR-1 or PSR-2 is telling you to use ControllerBase
or BaseController
?