I'm new to Zend-Framework3.
And migrating my ZF2 application to ZF3.
[:/action]
is not calling the Actions
in the controller. Do we have to manually write all actions which are defined in the controller as a route?
Here is router from my module.config.php
'router' => array(
'routes' => array(
'user' => array(
'type' => 'segment',
'options' => array(
'route' => '/user[/:action][/:id]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'id' => '[0-9]+'
),
'defaults' => array(
'controller' => Controller\UserController::class,
'action' => 'login'
)
)
),
)
)
When I try to call /user/register
action. It generates 404 error
.
Where am I wrong? Or do I have to register all actions manually?