Update controller.php

I just download yii basic templates and yii2-giant and it doesn't work, with this fix is working again.