public function getPath($path = null, $isPublic = false)
    {
        $path = RouterHelper::normalizeUrl($path);
        $assetFile = $this->skinPath . $path;

        if (File::isFile($assetFile)) {
            return $isPublic
                ? $this->publicSkinPath . $path
                : $this->skinPath . $path;
        }

        return $isPublic
            ? $this->defaultPublicSkinPath . $path
            : $this->defaultSkinPath . $path;
    }
public function getPath($path = null, $isPublic = false)
    {
        $path = RouterHelper::normalizeUrl($path);
        $assetFile = $this->skinPath . $path;

        if (File::isFile($assetFile)) {
            return $isPublic
                ? $this->publicSkinPath . $path
                : $this->skinPath . $path;
        }

        return $isPublic
            ? $this->defaultPublicSkinPath . $path
            : $this->defaultSkinPath . $path;
    }
public function getPath ( $ path = null , $ isPublic = false ) { $ path = RouterHelper :: normalizeUrl ( $ path ) ; $ assetFile = $ this -> skinPath . $ path ; if ( File :: isFile ( $ assetFile ) ) { return $ isPublic ? $ this -> publicSkinPath . $ path : $ this -> skinPath . $ path ; } return $ isPublic ? $ this -> defaultPublicSkinPath . $ path : $ this -> defaultSkinPath . $ path ; }
Looks up a path to a skin-based file, if it doesn't exist, the default path is used.
@param  string  $path
@param  boolean $isPublic
@return string
Looks up a path to a skin - based file if it doesn t exist the default path is used .