(February 3, 2018 at 9:27 pm)KevinM1 Wrote:(February 3, 2018 at 9:11 pm)bennyboy Wrote: Yep, it also makes the site much more extensible. I don't know much about PHP, but in ASP, we have a kind of dual layering: css for appearance, and masterpages for site HTML. So we can switch CSS themes, but we can also swap in or out the entire logic framework, too.
There are various PHP template engines that do something similar. Templates can inherit from one another, so you'll generally have a master layout template, and then templates for various things (blog side bar, interactive map, repeating items, etc.). It's a lot like ASP.NET Web Form masterpages.
If you're interesting in taking a look, I use Twig because it comes as a part of Symfony (a lot like how Razer is the default for ASP.NET MVC): https://twig.symfony.com/
Are you a lecturer in a computer-related course, by any chance? You write like an academic uni professor when explaining this stuff.