[TYPO3-mvc] Feedback on extbase

Nils Blattner nb at cabag.ch
Fri Feb 19 09:37:59 CET 2010


Am 18.02.10 19:19, schrieb Uwe Michelfelder:
> Hi Nils,
>
> nice write up of your experiences. I just started a project about the
> same size (2500+ fe-users).
>
> I'm right now at the point of pulling together the forms and data in the
> model by templating with fluid.
>
> One thing I stumbled upon immediatly too, was the label-issue in forms.
> Here I would be interested to see your modified viewhelper.
>
> Another question which I thin you might know is concerning the gathered
> user data:
> Did you extend the fe_users Domain Model? And if, are aggregated users
> e.g. group->members objects of the extended model or still frontenduser
> objects?
> The latter is my problem right now, although I declare "members" as
> objects of the extended model MyExtendedUser (which extends
> Tx_Extbase_Domain_Model_FrontendUser).
>
> I will put this question in an extra mail on the list, so others might
> find it by more specific subject.
>
> Greets,
> Uwe
>

Hey Uwe

I'm gonna go through my project in the next hour or two and put up any 
code I feel would help, including the label ViewHelper.


When I started, I intended to use fe_groups for the team concept, but 
before we really started off, we changed that model.
Because fe_groups are used for so many different things, we felt that 
using our own 'team' model would simplify a lot of things.

 From my understanding of the concepts behind extbase tough, I would say 
that the users you get from those members would be of the desired type 
MyExtendedUser.
However, I suggest you use the extbase naming conventions! Something 
like Tx_MyExtension_Domain_Model_User or some such.
If you are in doubt what some object's class is, you can always use 
get_class($object) to print out the actual name of the underlying class.


Just be aware that I had some problems with extending 
Tx_Extbase_Domain_Model_FrontendUser. I couldn't quite work out how to 
use the usergroup functions properly and I could not get the `language` 
property to work (no tx_ or anything before).
Having said that, I did not invest too much time into the aggregate 
properties. I was working with a deadline and a working application was 
more important that using maybe days to find the "extbase" way to do it.


Hope this helps

Nils


More information about the TYPO3-project-typo3v4mvc mailing list