set up PHP template system