[TYPO3-mvc] [Fluid] Only one level is possible for directories in ViewHelpers
Steffen Kamper
info at sk-typo3.de
Wed Aug 12 01:26:45 CEST 2009
Hi,
i tried to use subdirectories in Viewhelper as it make sense for Be
viewhelper, see following structure:
ViewHelpers
- Be
- - Buttons
- - Status
- - Components
- - - Tables
etc. i think this feels much more organized.
However, Fluid only resolves one level in
Tx_Fluid_Core_Parser_TemplateParser::resolveViewHelperName
Change it to infinetive was really simple, here my working solution:
- $className = ucfirst($explodedViewHelperName[0]);
- $className .= Tx_Fluid_Fluid::NAMESPACE_SEPARATOR;
- $className .= ucfirst($explodedViewHelperName[1]);
+ $className = implode(Tx_Fluid_Fluid::NAMESPACE_SEPARATOR,
array_map('ucfirst', $explodedViewHelperName));
vg Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list