Replaced lcfirst function (PHP>=5.3) by strtolower+substr functions (PHP>=5) because the minimum PHP version required by Yii is 5.1.