public function classToAlias($className)
    {
        $className = $this->getRelativeClass($className);

        return ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $className)), '_');
    }
public function classToAlias($className)
    {
        $className = $this->getRelativeClass($className);

        return ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $className)), '_');
    }
public function classToAlias ( $ className ) { $ className = $ this -> getRelativeClass ( $ className ) ; return ltrim ( strtolower ( preg_replace ( '/[A-Z]/' , '_$0' , $ className ) ) , '_' ) ; }
Creates an automatic alias from a class name.

@param string $className

@return string
Creates an automatic alias from a class name .