Inflector::camelize PHP Method

camelize() public static method

public static camelize ( $string )
    public static function camelize($string)
    {
        return str_replace(' ', '', ucwords(str_replace(array('_', '-'), ' ', $string)));
    }

Usage Example

 public function get(Model $model, $name)
 {
     $inflectedName = Inflector::camelize($name);
     $className = 'Cloggy' . $inflectedName;
     $class = ClassRegistry::init('Cloggy.' . $className);
     return $class;
 }
All Usage Examples Of Inflector::camelize