create php file to control templates