I am trying my routing works but its failing to route properly.
when i am going to www.example.com/nl/over-ons
it fails to go to class AboutController extends AbstractActionController { public function nlAction() {}
// www.example.com/nl/over-ons fails
$route = Http\Segment::factory(array(
'route' => '/nl/over-ons',
'defaults' => array(
'controller' => 'Application\Controller\About',
'action' => 'nl'
),
));
$router->addRoute('nlaboutus', $route, null);
// it works - www.example.com/nl
$route = Http\Segment::factory(array(
'route' => '/nl',
'defaults' => array(
'controller' => 'Application\Controller\Nlindex',
'action' => 'index'
),
));
$router->addRoute('nlindex', $route, null);