Пример #1
0
        /**
         * 
         * @param type $sPath
         */
        public static function path2Url($sPath)
        {
                $oUri     = clone JUri::getInstance();
                $sUriPath = $oUri->toString(array('scheme', 'user', 'pass', 'host', 'port')) . self::rewriteBase() .
                        JchOptimizeHelper::strReplace(JPATH_ROOT . DIRECTORY_SEPARATOR, '', $sPath);

                return $sUriPath;
        }