0
I’m developing a PHP MVC project and I 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 it is necessary to view only in . html files without any php. Also, I need to implement a login system so that I have to implement some form of php login control on the html pages.How would I proceed?
Wrong. Multiple frameworks support views in html for making use of template engine.
– Papa Charlie
I fully agree with @Gustavo Carvalho, the view idea is not to use business logic, no matter what code you will use in the view, the important thing is not to mix the business logic with the view.
– deFreitas
@Papa Charlie, I’m not saying you can’t have views . html, I’m telling you that if necessary you can have views . php ( for listings, etc );
– Gustavo Carvalho
This project can help http://dwoo.org/, use it always, views are in . tpl format
– Cassiano José