1
I am a beginner in php, and so I have caught a lot. Also because I have used sublime text with apache and php installed separately (use Ubuntu with OS). Well my question regarding views and php is:
I don’t understand how you transition from controller to view. If I should mix php code with html tags, or if there is a way to include in the html file what is passed by a php code.
I know my doubt is very generic and initial, but if someone has a didactic example of how I do it, or if someone knows of some example project for me to see and understand also helps.
What else I have found on the net is concept and this I have already understood, now apply this in practice is another 500
It is not indicated to mix the view with php, to make the connection between both usually we use a template engine.
– Ricardo
@Can you give me more information about this enginer template? As I explained in the question, I am very lost in this part, I am making mvc with 3 layers model (DAO, Value and Business), only now I stopped in the view question.
– Luan G. C. Rodrigues
I posted information as answer I’m still learning all the features of Dwoo (a template engine)
– Ricardo
Links where I am learning to work with dwoo: http://devzone.zend.com/1746/building-template-driven-web-applications-with-dwoo-part-1/ and http://devzone.zend.com/1760/building-template-driven-web-applications-withdwoo-part-2/
– Ricardo
I appreciate your reply, but I still do not understand the transition, because I did not want to use template, I wanted to do on the arm even to know how it works in practice.
– Luan G. C. Rodrigues
But "doing it on the arm" is by no means an option, because the middle field between the view and controller is not isolated to a junction where there is php code inside html, a proof would open a compiled template code (this is done automatically) you will see that there is PHP code inside HTML.
– Ricardo