Support Joomla!

references:joomla.framework:document:jdocument-gettitle

Table of Contents

getTitle

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocument Method getTitle Reference getTitle() Never Work in Progress

Gets the title of the current document.

Syntax

string getTitle ()

Examples

This example displays the title of the current document.

Example

global $mainframe;

$document = &JFactory::getDocument();
echo "Title: " . $document->getTitle();

Might produce:

Result

Title: Joomla! 1.5 Documentation Test Bed
 
references/joomla.framework/document/jdocument-gettitle.txt (803 views) · Last modified: 2007/08/15 14:53