references:joomla.framework:document:jdocumenthtml-parseparse
Parse a document template. This method will read and parse the specified document template file. By default, it will parse the index.php file located in the $template subdirectory in ‘templates’. Syntaxvoid parse ( $template, $filename, $directory )
ExamplesThe ‘rhuk_milkyway’ document template in the core installation would be loaded in the following way: Example global $mainframe; $document =& JFactory::getDocument(); $document->parse( 'rhuk_milkyway' ); Templates are stored in the /templates directory using a subdirectory that is the name of the template. Therefore, this function will, by default, parse the file /templates/$template/index.php. In this case, $template is ‘rhuk_milkyway’, so the parsed file will be /templates/rhuk_milkyway/index.php. If this function is called from the Backend, this directory will be relative to the ‘administrator’ and will therefore load the specified admin template. |


