I am working on a php module based CMS and almost have it finished. The only thing I am missing is a way to actually include the modules in their proper places. I have a template for the pages with %1% %2% and %3% where the modules should be inserted, if there is no module for that area then it should be empty, which it is doing. If there is a module in that area then it should get the proper files from the module_bases table and include them.
Here is a screenshot to show what I am talking about.
Now, during execution, where it says %3% it should include the files for the blog module during the ob_start callback.
Basically what I really need is this.
echo "Hello, I am a test";
$buffer = str_replace("%1%",contents from test.php IE include(''test.php"),$buffer);
and the final result should be Hello, I am a test
Is there any way to do this?