Updated template to php