references:joomla.framework:document:jdocumentrenderer-getcontenttypeTable of Contents
getContentType
Returns the content type of the renderer. The method returns a string containing the mime type of the document. Syntaxstring getContentType () ExamplesExample jimport( 'joomla.document.renderer' ); jimport( 'joomla.document.html.renderer.module' ); $renderer = new JDocumentRendererModule( $document ); echo $renderer->getContentType(); might produce: Result text/html Discussion |


