[TYPO3-english] How to fix "Could not analyse class: "Tx_Vhs_ViewHelpers_Page_HeaderViewHelper"
Toke Herkild
th at t3cms.dk
Mon Aug 29 08:38:35 CEST 2016
Hi James,
You change the top line of your template file. In which you use the VHS
viewhelper. Eg: Partials/Controller/properties.html
Regards,
Toke
On 24-08-2016 01:51, james xu wrote:
> 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;
> }
> }
---
Denne e-mail blev kontrolleret for virusser af Avast antivirussoftware.
https://www.avast.com/antivirus
More information about the TYPO3-english
mailing list