How to insert a php code in a template?