ngrt / MVC_todo

Creating a simple MVC framework
91 stars 39 forks source link

access header footer #3

Open andresmoya opened 6 years ago

andresmoya commented 6 years ago

Thanks for your medium write up and code, very useful!

I am trying to figure out how i could add includes for header, footer, and nav so that things in there can also be dynamic, currently as this is setup the request is echo into the node of the template. Any help really appreciated

ritwikmathlearner commented 5 years ago

create separate php for everything that you need... as used like a partial view in ASP.NET MVC and require those into the views.