private function renderFile($typeIdentifier, $relPath)
    {
        if (tao_helpers_File::securityCheck($relPath, true)) {
            $folder = $this->getImplementationDirectory($typeIdentifier);
            $filename = $folder.$relPath;
            
            //@todo : find better way to to this
            //load amd module
            if (! file_exists($filename) && file_exists($filename.'.js')) {
                $filename = $filename.'.js';
            }
            tao_helpers_Http::returnFile($filename);
        } else {
            throw new common_exception_Error('invalid item preview file path');
        }
    }
private function renderFile($typeIdentifier, $relPath)
    {
        if (tao_helpers_File::securityCheck($relPath, true)) {
            $folder = $this->getImplementationDirectory($typeIdentifier);
            $filename = $folder.$relPath;
            
            //@todo : find better way to to this
            //load amd module
            if (! file_exists($filename) && file_exists($filename.'.js')) {
                $filename = $filename.'.js';
            }
            tao_helpers_Http::returnFile($filename);
        } else {
            throw new common_exception_Error('invalid item preview file path');
        }
    }
private function renderFile ( $ typeIdentifier , $ relPath ) { if ( tao_helpers_File :: securityCheck ( $ relPath , true ) ) { $ folder = $ this -> getImplementationDirectory ( $ typeIdentifier ) ; $ filename = $ folder . $ relPath ; //@todo : find better way to to this //load amd module if ( ! file_exists ( $ filename ) && file_exists ( $ filename . '.js' ) ) { $ filename = $ filename . '.js' ; } tao_helpers_Http :: returnFile ( $ filename ) ; } else { throw new common_exception_Error ( 'invalid item preview file path' ) ; } }
Render the file to the browser

@param string $typeIdentifier
@param string $relPath
@throws common_exception_Error
Render the file to the browser