[TYPO3-ect] RFC: Common prefixId for several controllers
Elmar HInz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Mon Jan 15 17:51:55 CET 2007
Am Mon, 15 Jan 2007 15:13:02 +0100 schrieb Ernesto Baschny [cron IT]:
> Hi Elmar,
>
> In my "Baschny MVC" variant I have just one "frontend plugin controller"
> per extension so I don't have that problem. That frontend plugin
> controller chooses the controller/view to execute/load based on
> TypoScript and GPvars.
>
> So I would recommend trying to find a way to have a single prefixId per
> extension in your lib/div solution.
>
> You came up with "$designator" but if you think that you have one
> designator per extension, you could as well use the extension key as the
> "designator" and call it what it really is: $extensionKey.
>
Good points. Makes it more simple. I think I will follow your sugestion
this way:
1.) You access the designator by a getDesignator() function.
2.) This function by default returns the extension key.
3.) If you want something else for any reasons, you can explicitly set
the designator as class variable.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list