A
A
Andrew2011-11-28 14:19:46
Zend Framework
Andrew, 2011-11-28 14:19:46

Zend Validate and nested arrays?

I don’t understand how to check nested arrays in Zend, for example:

$input = array(<br>
    'roles' => array(<br>
        array('name' => 'Test', 'id' => 1),<br>
        array('name' => 'Test2', 'id' => 2, 'access' => array('read', 'write'))<br>
    ),<br>
    'name' => 'blabla'<br>
);<br>

Is it possible to check this with InputFilter?
If not, what would you recommend to use?
UPD:
If not, what would you recommend to use from the finished one?
There is a great github.com/Respect/Validation but don't like it because of the error system.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly, 2011-11-28
@taliban

great option

M
mbt, 2013-11-14
@mbt

Zend_Validate_Callback ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question