| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocument |
setTitle |
setTitle() |
Never | Work in Progress |
Sets the title of the page.
void setTitle ( $title )
| $title | string | is a string containing the title for the page. |
Set the title for the page.
Example
global $mainframe; $document =& JFactory::getDocument(); $document->setTitle( 'Joomla! Documentation Test Bed' ); echo "Title: " . $document->getTitle();
Might produce:
Result
Title: Joomla! Documentation Test Bed