Adding php templating