Posted at


More than 3 years have passed since last update.

JDocument::setMetaData() を使います。


* Sets or alters a meta tag.
* @param string $name Value of name or http-equiv tag
* @param string $content Value of the content tag
* @param boolean $http_equiv META type "http-equiv" defaults to null
* @return JDocument instance of $this to allow chaining
* @since 11.1

public function setMetaData($name, $content, $http_equiv = false)


// 5秒後に $url へジャンプ

$doc = JFactory::getDocument();
$doc->setMetaData('refresh', '5;URL=' . $url, true);