/** * @param CM_Frontend_Render $render * @param string $path * @throws CM_Exception_Invalid * @return string */ public static final function getClassnameByPath(CM_Frontend_Render $render, $path) { $path = (string) $path; $pathTokens = explode('/', $path); array_shift($pathTokens); // Rewrites code-of-honor to CodeOfHonor foreach ($pathTokens as &$pathToken) { $pathToken = CM_Util::camelize($pathToken); } return $render->getClassnameByPartialClassname('Page_' . implode('_', $pathTokens)); }