I'm trying to learn the MVC design pattern for PHP development and I have a couple of questions concerning view structure.
I keep seeing "Views are not templates!" plastered everywhere where I read about MVC. But how do I include stuff like headers, navbars and footers? If I have html that should be shared by all views, how do I include it around the view without a template?
I also read on another thread in stack overflow that views should never have require statements, and that they are the ones that should be required. But what about a case where I have a view that should be required in multiple views? Let's say that some views have a few lines that spit out a list, it would be more logical to reuse the code using require statements within a view than to rewrite it for every view, but this is apparently against the nature of views.
Thanks.