model view controller - PHP MVC Basics for login form -


im new forum , new mvc. know basics of php , have made simple php website. want create website follows mvc patter, atleast in simplest form.

would correct in assuming that, if example had login for, model contain sql select statements, controller handle data e.g if (isset($_post["username"])) { , view contain basic html form user enter data?

any information appreciated thanks!

those assumptions correct, recomend taking @ existing mvc framework such tinymv if want mvc pattern or cakephp if want bunch of other features . there plenty of other alternatives.


Comments

Popular posts from this blog

Redirect to a HTTPS version using .htaccess -

Unlimited choices in BASH case statement -

javascript - jQuery: Add class depending on URL in the best way -