public function scriptFile($path) {
        if ($this->skipOtherScriptFiles)
            return "";
        
        if ('http' != substr($path, 0, 4)) {
            $path = \mpf\WebApp::get()->request()->getWebRoot() . $path;
        }

        $md5 = md5($path);
        if (in_array($md5, self::$cssScriptHistory))
            return '';
        self::$cssScriptHistory[] = $md5;
        return '<script type="text/javascript" src="' . self::encode($path) . '"></script>';
    }
public function scriptFile($path) {
        if ($this->skipOtherScriptFiles)
            return "";
        
        if ('http' != substr($path, 0, 4)) {
            $path = \mpf\WebApp::get()->request()->getWebRoot() . $path;
        }

        $md5 = md5($path);
        if (in_array($md5, self::$cssScriptHistory))
            return '';
        self::$cssScriptHistory[] = $md5;
        return '<script type="text/javascript" src="' . self::encode($path) . '"></script>';
    }
public function scriptFile ( $ path ) { if ( $ this -> skipOtherScriptFiles ) return "" ; if ( 'http' != substr ( $ path , 0 , 4 ) ) { $ path = \ mpf \ WebApp :: get ( ) -> request ( ) -> getWebRoot ( ) . $ path ; } $ md5 = md5 ( $ path ) ; if ( in_array ( $ md5 , self :: $ cssScriptHistory ) ) return '' ; self :: $ cssScriptHistory [ ] = $ md5 ; return '<script type="text/javascript" src="' . self :: encode ( $ path ) . '"></script>' ; }
Returns a script tag that links to the specified file
@param mixed $path
@return string
Returns a script tag that links to the specified file