ZF-6896: support callback function in Zend_Route config


I would like to build dynamically the reqs parameter.

exemple :

if I have in my config file

resources.router.routes.language.reqs.language = "(fr|en)"

I would be able to do something like

resources.router.routes.language.reqs.language = "function:buildUrlLanguage" or resources.router.routes.language.reqs.language = "class:languageModel->getUrlParam"

and in the function buildUrlLanguage()

function buildUrlLanguage(){
   $result = $db->fetchAll($db->select()->from(...))
   return "(fr|en)";


I think it's much better to create custom route class in your case.