Jump to content

Need a bit of help with Output Buffering/Simple MVC


Cobby

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.