Added PHTML template adapter -- refactoring needed