简体   繁体   中英

Could not analyse class TYPO3 7.6.18 LTS (after upgrading from 6.2 LTS)

After upgrading from TYPO3 LTS 6 to LTS 7, my viewhelper extension classes are not found.

My classes are in the autoload_classmap.php.

ext_emconf.php

'autoload' => array(
    'psr-4' => array('Vendor\\ExtName\\' => 'Classes')
)

class

namespace Vendor\ExtName\ViewHelpers;

class VideoRenderViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {

    /**
     * 
     * @return string
     */
    public function render() {
        /*do something*/

        return $videoString;
    }
}

Fluid

{namespace v=Vendor\ExtName\ViewHelpers}
<v:videorender></v:videorender>

Can you see the problem? Thanks

<v:videorender></v:videorender>更改为<v:videorender />解决了我的问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM