Implemented fallback to PHP template.