TYPO3-Documentation/TYPO3CMS-Book-ExtbaseFluid

Developing a custom ViewHelper: error in examples

Closed this issue · 2 comments

I guess there is an error in some of the examples on Developing a Custom ViewHelper:

As mentioned in the text below the example for The implementation it should be

use \TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;

instead of

use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;

This appears in several examples on the page but will lead to a deprecated note marked as strong.

That's absolutely correct and recommended since TYPO3v8. Can you make a PR for this? Just hit the Edit me on Github button in the upper right to fix this. :-)

Can you make a PR for this?

Never done that before but I’ll try :)