Document

$this->document->setTitle($title);

Set the title of a page. Visible in the tab on a browser and the blue link in a search result set.

$this->document->getTitle();

Get the title of a page. Visible in the tab on a browser and the blue link in a search result set.

$this->document->setDescription($description);

Set the meta description for a page.

$this->document->getDescription();

Get the meta description for a page.

$this->document->setKeywords($keywords);

Set the meta keywords for a page.

$this->document->getKeywords();

Get the meta keywords for a page.

$this->document->addLink($link, $rel);

Add a new rel link into the header for a particular page. Useful for setting custom headers for a page but not for others.

$this->document->getLinks();

Returns rel links set for page.

$this->document->addStyle($href, $rel = ‘stylesheet’, $media = ‘screen’);

Set a new stylesheet for the page.

$this->document->getStyles();

Returns extra stylesheets set for a page.

$this->document->addScript($script);

Add a new script file, such as JavaScript, for a page.

$this->document->getScripts();

Returns the extra script files for a page.

Last update: Tue, 13 Sep 2022 14:32:15