I am new in phalcon . so i have hard working with validate an array in post request example i have website using multi language and i need validator
<input name="description[1][title]" />
<input name="description[1][description]" />
<textare name="description[2][title]"></textare>
<textare name="description[2][description]"></textare>
How to validate array value in post with format message like
errors [
'description': [
1: [
[ 'title' => 'title is require'],
[ 'description' => 'description is require']
],
2: [
[ 'title' => 'title is require'],
[ 'description' => 'description is require']
]
]
]
like this so i can handle to display error in the html with the key is language id .
Sorry for my bad english ! Thanks