set up php controller