Zend Framework 2 route overlap -


let's want user able access profile typing www.test.com/hisname

i've added following route routes array in modules config file

        'profile' => array(             'type' => 'segment',             'options' => array(                 'route' => '/:user[/]',                 'defaults' => array(                     'controller' => 'user\controller\user',                     'action' => 'profile'                        )             )         ),   

and works fine until want access page, example www.test.com/about has following, easy figure out, route

        'about' => array(             'type' => 'segment',             'options' => array(                 'route' => '/about[/]',                 'defaults' => array(                     'controller' => 'application\controller\index',                     'action' => 'about'                      )             )         ),   

the result gets matched first route , redirects profile. i've thought order, these 2 routes in different modules

any ideas? should use pattern exclude "static" pages? i've thought of have change every time make new page.

help me out felas!


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -