[TYPO3-mvc] Fluid: Complex forms best practice

Sebastian KurfŸürst sebastian at typo3.org
Thu Jul 9 20:08:19 CEST 2009


Hey Nikolas,

> Further more I came across the fact that at least flow3 offers the
> opportunity to specify custom validation objects
> " * @validate $customer F3\Foo\Validator\PlatinumCustomerValidator"
> 
> Is extbase capable of a similar mechanism? 
Yep, same syntax.

You can as well add @validate annotations to properties of your domain 
object itself, the syntax is the same except the variable name which can 
be left out.


> Yes it works.
> But this is not a viable solution since I got a bunch of fields and what I
> wanted to avoid is to define all of them within the controller. Therefor I
> raised the proposal of having a "registration" object.
Yep, if you have so many fields, this makes sense.

> BTW: is there an extbase related IRC channel? #flow3 at freenode seems fairly
> empty :)
Some of us (me included) are usually there, but it might take some time 
until we answer (and asking directly is better, so there will be a 
highlight in my IRC client ;) )

Greets,
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list