[TYPO3-ect] General feedback for lib/div
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Mon Jun 11 15:13:46 CEST 2007
Am Mon, 11 Jun 2007 07:11:34 -0500 schrieb ries van Twisk:
> On Jun 11, 2007, at 3:06 AM, Elmar Hinz wrote:
>
>>>
>>> The way the kickstarter__mvc should handle this is to create a file
>>> with "view" (singular) in its name and in the classname, and put it
>>> into a directory "views" (plural).
>>>
>>
>> If the directory is EXT:exmaple/views/
>>
>> Right for autoloader: tx_example_views_smartyView
>> Wrong for autoloader: tx_example_view_smartyView
>>
>>
>
> Hey,
>
> Why would we name a single view plural?
Well ...smartyView is the singular here.
Let's regard the rest of the name as "path prefix" or "directory prefix".
The directory contains multiple views. That's why it's plural.
To use the classname as path information is PEAR style to enable
autoloading. I admit that it's not perfect. Additional freedom to drop
the plural s, like you suggest, could be technically implemented easily.
However I don't feel that we would gain more clearness, if we mix the path
...example/views/...
with a classname
tx_example_view_...
So I am hesitating. Let's hear other opinions.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list