I am trying to hit the datatable action with the sID and cID params.
/CustomerManager/datatable/123/100
When the above url is hit it goes to the refreshdata see below image.
Working fine when the url is
/CustomerManager/datatable
Can anyone see problem with the config?
'CustomerManager' => array(
'type' => 'Segment',
'options' => array(
'route' => '/CustomerManager[/:action]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'controller' => 'CustomerManager\Controller\CustomerManager',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'datatable' => array(
'type' => 'segment',
'options' => array(
'route' => '/[:sID][/:cID]',
'constraints' => array(
'cono' => '[a-zA-Z0-9_-]+',
'cust' => '[a-zA-Z0-9_-]+',
),
'defaults' => array(
'action' => 'datatable',
),
),
),
'refreshdata' => array(
'type' => 'segment',
'options' => array(
'route' => '/[:showDel][/:sID][/:cID]',
'defaults' => array(
'action' => 'refreshdata'
),
'constraints' => array(
'showDel' => '[a-zA-Z0-9_-]+',
'sID' => '[a-zA-Z0-9_-]+',
'cID' => '[a-zA-Z0-9_-]+',
)
)
),
)