Cobby Posted May 12, 2008 Share Posted May 12, 2008 Just making a very simple MVC-type system for an IPT assignment. A snippet from the bootstrap goes like: <?php ob_start(); @include root . '/header.php'; include root . $request; @include root . '/footer.php'; ob_flush(); ?> I've got output buffering setup so the $request file can still send headers. In header.php, I have things that need to be set in the header (i.e <title></title>, meta information, javascript, css, etc) and I want it so that $request can set stuff to the header.php. I don't really see how, but would it be any easier if I OOP-erised things? I would rather not because the schools servers are running PHP4 (pretty messed up I know) and I doesn't have very good class support. Cheers, Cobby Link to comment https://forums.phpfreaks.com/topic/105243-need-a-bit-of-help-with-output-bufferingsimple-mvc/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.