framework/helpers/BaseInflector.php
public static function titleize($words, $ucAll = false)
    {
        $words = static::humanize(static::underscore($words), $ucAll);

        return $ucAll ? StringHelper::mb_ucwords($words, self::encoding()) : StringHelper::mb_ucfirst($words, self::encoding());
    }
public static function titleize($words, $ucAll = false)
    {
        $words = static::humanize(static::underscore($words), $ucAll);

        return $ucAll ? StringHelper::mb_ucwords($words, self::encoding()) : StringHelper::mb_ucfirst($words, self::encoding());
    }
public static function titleize ( $ words , $ ucAll = false ) { $ words = static :: humanize ( static :: underscore ( $ words ) , $ ucAll ) ; return $ ucAll ? StringHelper :: mb_ucwords ( $ words , self :: encoding ( ) ) : StringHelper :: mb_ucfirst ( $ words , self :: encoding ( ) ) ; }
Converts an underscored or CamelCase word into a English
sentence.
@param string $words
@param bool $ucAll whether to set all words to uppercase
@return string
Converts an underscored or CamelCase word into a English sentence .