FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
145 stars 214 forks source link

Add FalViewHelper to ClassAliasMaps #505

Closed alexdpunkt closed 10 years ago

alexdpunkt commented 10 years ago

This should be added to the ClassAliasMaps:

'Tx_Flux_ViewHelpers_Flexform_Field_Inline_FalViewHelper' => 'FluidTYPO3\Flux\ViewHelpers\Field\Inline\FalViewHelper'

danilobuerger commented 10 years ago

Why?

alexdpunkt commented 10 years ago

I get the following error: Fatal error: Class 'Tx_Flux_ViewHelpers_Flexform_Field_Inline_FalViewHelper' not found in /html/typo3/typo3_src-6.2.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4280

As soon as I add it to the ClassAliasMaps the error is gone...

TYPO3 6.2.0 Flux 7.0.0

danilobuerger commented 10 years ago

Is your view helper called <flux:flexform.field.inline.fal ... ?

danilobuerger commented 10 years ago

(sorry for closing, wrong button)

alexdpunkt commented 10 years ago

Yes it is. Flux is TER version if this matters.

<flux:flexform.field.inline.fal ... />

NamelessCoder commented 10 years ago

If I may interject:

The class Tx_Flux_ViewHelpers_Flexform_Field_Inline_FalViewHelper never existed in Flux - however, FluidTYPO3\Flux\ViewHelpers\Field\Inline\FalViewHelper exists. I think the problem here is that Alex perhaps is still using the old Flux namespace in the Fluid template - or possibly that TYPO3 6.1.7 is being used, which lacks the fix for the "use original class name always, when encountering an alias in Fluid".

alexdpunkt commented 10 years ago

Claus you are totally right. I use the old namespace.

{namespace flux=Tx_Flux_ViewHelpers}

Is it safe to switch to the namespaced paths already?

I'm on a fresh TYPO3 6.2 with Flux 7.0.0.

danilobuerger commented 10 years ago

Yeah, and you should use <flux:form.field.inline.fal

I am closing this now, since everything will be fine if you use this vh

cedricziel commented 10 years ago

It absolutely is, and it is encouraged to do so on flux 7.0 and especially with the namespaced 6.2.

Please keep in mind that a lot of the namespaces were simplified-example:

<flux:field.*> formerly was <flux.flexform.field.*>

There is a blog post on fluidtypo3.org (http://fluidtypo3.org/blog/news/dropping-typo3-4x-support.html) explaning some of the changes in the ViewHelper namespaces.

Cheers, Cedric

alexdpunkt commented 10 years ago

Great, thanks a lot!

cedricziel commented 10 years ago

Our pleasure. Keep on posting issues, so we can catch all of the (potential) bugs!

NamelessCoder commented 10 years ago

Zelda: Link to the Past and programming reference combined. Well how about that!

alexdpunkt commented 10 years ago

lol