framework/helpers/BaseInflector.php
public static function id2camel($id, $separator = '-')
    {
        return str_replace(' ', '', StringHelper::mb_ucwords(str_replace($separator, ' ', $id), self::encoding()));
    }
public static function id2camel($id, $separator = '-')
    {
        return str_replace(' ', '', StringHelper::mb_ucwords(str_replace($separator, ' ', $id), self::encoding()));
    }
public static function id2camel ( $ id , $ separator = '-' ) { return str_replace ( ' ' , '' , StringHelper :: mb_ucwords ( str_replace ( $ separator , ' ' , $ id ) , self :: encoding ( ) ) ) ; }
Converts an ID into a CamelCase name.
Words in the ID separated by `$separator` (defaults to '-') will be concatenated into a CamelCase name.
For example, 'post-tag' is converted to 'PostTag'.
@param string $id the ID to be converted
@param string $separator the character used to separate the words in the ID
@return string the resulting CamelCase name
Converts an ID into a CamelCase name . Words in the ID separated by $separator ( defaults to - ) will be concatenated into a CamelCase name . For example post - tag is converted to PostTag .