New. Write a PHP project without MVC frameworks.
Suppose there are two controllers: registration and login. Both have completely the same method to check the password (which is simple the regular season, for example).
The idea of this method should be put somewhere in one place? Where? Or is there and leave?