mardi 30 septembre 2014

Model View Controller (MVC) - how to apply in PHP? can't figure out how to use a controller for PHP


Vote count:

0




I have an assignment to create a login & registering etc system. The solution must follow MVC architechture. My question is:


How can you use a Controller in PHP? I can't see how because there's no way to call specific functions in the controller from a form, the form action must be a php file. Since the form action must be a php file, I can't choose which function to execute, unless I use ifs to find the right function to execute. But that doesn't seem like a good solution.



asked 2 mins ago







Model View Controller (MVC) - how to apply in PHP? can't figure out how to use a controller for PHP

Aucun commentaire:

Enregistrer un commentaire