add template support for php file and remove old template