Update controller.php

I just download yii basic templates and yii2-giant and it doesn't work, with this fix is working again.
Merge pull request #5 from einar-lanfranco/patch-1

Update controller.php