protected function getTagNameForClass($className, $namespace)
{
$strippedClassName = substr($className, strlen($namespace));
$classNameParts = explode('\\', $strippedClassName);
if (count($classNameParts) == 1) {
$tagName = lcfirst(substr($classNameParts[0], 0, -10));
// strip the "ViewHelper" ending
} else {
$tagName = lcfirst($classNameParts[0]) . '.' . lcfirst(substr($classNameParts[1], 0, -10));
}
return $tagName;
}