Answer the question
In order to leave comments, you need to log in
Problem with ZF2 route?
'places' => array(
'type' => 'Segment',
'options' => array(
'route' => '/places/[:action/]]',
'constraints' => array(
'controller' => 'Application\Controller\Places',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Places',
'action' => 'index',
),
),
),
'controllers' => array(
'invokables' => array(
'Application\Controller\Index' => 'Application\Controller\IndexController',
'Application\Controller\Places' => 'Application\Controller\PlacesController'
),
),
'application' => array(
'type' => 'Segment',
'options' => array(
'route' => '/:controller/[:action/]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
),
Answer the question
In order to leave comments, you need to log in
found, the problem was in the host settings, any routes other than sitename/ translated to 404. I'm sorry for the off-topic question =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question