Hi,
what's wrong in this route
'router' => array(
'routes' => array(
'home' => array(
'type' => 'segment',
'options' => array(
'route' => '[/:lang[/:controller[/:action]]][/]',
'constraints' => array(
'lang' => '[a-z]{2}',
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*'
),
'defaults' => array(
'controller' => 'Application\Controller\Index',
'action' => 'index',
'lang' => 'it'
),
)
),
),
),
it works with
/it
but it doesn't with
/it/index
/it/index/index
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zend-2-router-lang-parameter-tp4659395.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]