View in MVC project in PHP

0

I'm developing an MVC project in PHP and did the whole view in .html files. When I need to manipulate a form, I specify in the action the path to a script in the controller. My question is whether you need to view only .html files without anything php. Also, I need to implement a login system causing me to have to implement some form of login control in php on html pages. How would I proceed?

    
asked by anonymous 05.06.2015 / 18:38

1 answer

-1
The view is where you will put the output of your application, but it often becomes necessary to do some coding, so you can create views with a .php extension.

Illustrating : Assuming you have to list the registered users of a system, you can only do this if you have views with .php or .phtml extension

This is necessary because you need to run php code in this view.

Login : Regarding login, you can manage session through Controllers and output in Views.

    
05.06.2015 / 19:04