Added support for .phtml template handling