We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

request custom caster

the idea: i have get parameter name[].

I want if doesnt exist to be = empty array();

if it is not empty, i want to go trough all the values and sanitise them in my own way.

so how can i implement something like $this->request->get('name', 'array_string', []'); in a multi module app