Structure pages mvc + oop
Well .. you do not understand MVC design pattern. You seem to got all three parts wrong. Since I am quite lazy person, I will just direct to some older posts of mine that might help you to deal with handling pdo, some initial studies for the subject, basics of views, model layer, some minor note on controllers. Also there is a bit about access control in context of MVC, that might be useful to you.

Now! To the code ...
File: model.login.php

Model is not subtype of database connection (wel .. model is not even a class). This class is violating SRP [1], [2], [3] .

Aside from making a pointless wrapper for PDO, there is also a serious problem there: md5(sha1( ... )) should NEVER be used for hashing passwords. Please read the following three posts from @ircmaxell.


File: controller.login.php

You should learn how to use autoloader. Start by reading the documentation about spl_autoload_register(). Also I would recommend to look into what are namespaces and how then can be used together with autoloading schemes.

Don't us static method calls. Just because you wrap something in a class does not make it object-oriented (notice how it isn't called &quot;class-oriented programming&quot; .. there is a distinction). When used this way, your class acts only as namespace for your global-scope functions.


... the rest, IMHO, is covered in the linked posts above.