public function getFileNameDashedCase()
    {
        $calledClass = preg_replace('/.*Views/i', '', get_called_class());

        $calledClass = strtolower(
            preg_replace('/(?<=\\w)(?=[A-Z])/', '-$1', $calledClass)
        );

        return str_replace('\\', DIRECTORY_SEPARATOR, $calledClass);
    }
public function getFileNameDashedCase()
    {
        $calledClass = preg_replace('/.*Views/i', '', get_called_class());

        $calledClass = strtolower(
            preg_replace('/(?<=\\w)(?=[A-Z])/', '-$1', $calledClass)
        );

        return str_replace('\\', DIRECTORY_SEPARATOR, $calledClass);
    }
public function getFileNameDashedCase ( ) { $ calledClass = preg_replace ( '/.*Views/i' , '' , get_called_class ( ) ) ; $ calledClass = strtolower ( preg_replace ( '/(?<=\\w)(?=[A-Z])/' , '-$1' , $ calledClass ) ) ; return str_replace ( '\\' , DIRECTORY_SEPARATOR , $ calledClass ) ; }
Return the file name based on the class name that is dashed lower case.
This file name format is used by WordPress.

@return string
Return the file name based on the class name that is dashed lower case . This file name format is used by WordPress .