Fluid icon indicating copy to clipboard operation
Fluid copied to clipboard

need for Uppercase filenames for Layouts and Partials is puzzeling for newcommers

Open nchiapol opened this issue 6 years ago • 1 comments

It took me quiet some time to figure this out. I strongly try to avoid uppercase filenames in all my projects. So obviously I run into this.

Of course I would prefer to get rid of all the ucfirst calls as I do not understand the supposed advantages of this. However things that might help in the present situation:

  • This was not mentioned any documentation I found. Actually the best Fluid templating documentation I found is from typo3buddy and there lowercase names are used...
  • Maybe a warning could be generated whenever ucfirst has an effect.
  • The rendering throws an error with a message just telling you it did not find the file with the upper-case filename. So one needs to carefully read the log-file to realize what happened. It would be helpful to add a hint on the case of the filename.

nchiapol avatar Feb 08 '18 21:02 nchiapol

At least for TYPO3 this is a regression since this was changed a long time ago for the then embedded Fluid:

34812: [BUGFIX] Standalone- and TemplateView must not require ucfirst file names | https://review.typo3.org/c/Packages/TYPO3.CMS/+/34812

mbrodala avatar Apr 22 '22 10:04 mbrodala