fix php issues on the samples
Merge pull request #10 from fbasso/fix_samplescontroller

fix php issues on the samples