added a bit of extra functionality to PHP view handlder, can override the maintemplate if required when calling render() or process() on the view handler object