[TYPO3-english] Re: How to fix "Could not analyse class: "Tx_Vhs_ViewHelpers_Page_HeaderViewHelper"
james xu
james.xu at canadiansolar.com
Wed Aug 24 01:51:41 CEST 2016
Hi Toke
Thanks, but which file needs change and how to change ? I checked the "HeaderViewHelper.php " and the namespace is "FluidTYPO3\Vhs\ViewHelpers\Page" see below source which is located in the directory"typo3conf/ext/vhs/Classes/ViewHelpers/Page".
<?php
namespace FluidTYPO3\Vhs\ViewHelpers\Page;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper;
/**
* ViewHelper used to place header blocks in document header
*
* @package Vhs
* @subpackage ViewHelpers\Page
*/
class HeaderViewHelper extends AbstractAssetViewHelper
{
/**
* Render method
*
* @return void
*/
public function render()
{
if ('BE' === TYPO3_MODE) {
return;
}
$content = $this->getContent();
$name = $this->getName();
$overwrite = $this->getOverwrite();
if (true === isset($GLOBALS['TSFE']->additionalHeaderData[$name]) && false === $overwrite) {
return;
}
$GLOBALS['TSFE']->additionalHeaderData[$name] = $content;
}
}
More information about the TYPO3-english
mailing list