Frontend\Core\Engine\TwigTemplate::getPath PHP 메소드

getPath() 공개 메소드

Convert a filename extension
public getPath ( string $template ) : string
$template string
리턴 string
    public function getPath($template)
    {
        if (strpos($template, FRONTEND_MODULES_PATH) !== false) {
            return str_replace(FRONTEND_MODULES_PATH . '/', '', $template);
        }
        // else it's in the theme folder
        return str_replace($this->themePath . '/', '', $template);
    }