I thought this would work. I'm making a child of EventReader where I want to call the reader to do the normal template setup and parse the event template, upon returning to the child, I will modify the template object further and re-parse it.
Is this even possible, or will I have to copy all the code over:
Code:
protected function compile()
{
global $objPage, $objTemplate; // wanted to define it global so that I can have access to it upon parent return
parent::compile(); // here the $objTemplate is created with a = new Template();
$objTemplate->hasMore = true; // generates a error, stdObject created
Otherwise, I'll just have to copy the entire class and modify and not make it a child.
Bookmarks