Hi,
this is my route in module.config.php
(you read Base but it's like the Application module
just to tweak the zend 2 around)
'router' => array(
'routes' => array(
'home' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/',
'defaults' => array(
'controller' => 'Base\Controller\Index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => 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(
'action' => 'index',
'__NAMESPACE__' => 'Base\Controller'
)
)
)
)
)
)
),
the problem is that I put
/index or /index/index I get a 404 not found response from the apache (not
from the script)
what's wrong ?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zend-2-router-in-base-Application-module-tp4659385.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]