[fw-general] XOR logic for two elements

2013-01-21 Thread MrNorm
Hello, I currently have a validator that has the following logic: house number + flat number = 0 house number + NO flat number = 1 NO house number + flat number = 1 NO house number + NO flat number = 0 The issue I have is that the last rule (NO house number + NO flat number) does not run because

[fw-general] Creating composite form elements

2013-01-21 Thread MrNorm
Hi everyone, I'm struggling to create a composite form element in ZF2 based on this ZF1 tutorial . I've created my element in a custom library called 'Si': namespace Si\Form\Element;use Zend\Form\Element;class DateSegmented extends

[fw-general] Conditional validators for entity input filters

2012-11-19 Thread MrNorm
Hi everyone, I'm a little new to ZF2 so please forgive me if the question is mind-numbingly obvious. I have an entity called 'User', which has a number of fields and and input filters, created through a 'getInputFilter' function. I'm trying to work out in my head what the best solution for my ap