routing - Add specific characters to zend router -
is here way use space or "!" in zend url? there code have routing :
'route' => '/city[/:action][/:id]', 'constraints' => array( 'action' => '[a-za-z][a-za-z0-9_-]*', 'id' => '[a-za-z][a-za-z0-9_-]*', ),
now can have type of urls : /city/index/paris , if put - /city/index/new york, doesnt work giving me 404 error. have tried put 'id' -
'[a-za-z][a-za-z0-9_-][ ]*'
or
'[a-za-z][a-za-z0-9_-][%20]*'
, again 404.
edit
and if add constraints cyrillic characters, this
'id' => '[a-za-zа-яА-я][a-za-zа-яА-Я0-9_-]*',
i cannot use url /city/index/Москва. please me.
Comments
Post a Comment