| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocument |
getTitle |
getTitle() |
Never | Work in Progress |
Gets the title of the current document.
string getTitle ()
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