url -localhost/MyTaskList/task
i run the project on my development server and after i removed task and added checklist on the comment below and i got a db connection error so i assume it works now.
update:
Yea well i had to rewrite some things!
update 2:
Back to the original.
url -localhost/MyTaskList/task
<?php
return array(
'controllers' => array(
'invokables' => array(
'Checklist\Controller\Task' => 'Checklist\Controller\TaskController',
),
),
'router' => array(
'routes' => array(
'task' => array(
'type' => 'Literal',
'options' => array(
'route' => '/task',
'defaults' => array(
'__NAMESPACE__' => 'Checklist\Controller',
'controller' => 'Task',
'action' => 'index',
),
'constraints' => array(
'action' => '^add|edit|delete$',
'id' => '[0-9]+',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'type' => 'Segment',
'options' => array(
'route' => '/[:controller[/:action]]',
),
),
),
),
),
),
'view_manager' => array(
'template_path_stack' => array(
'checklist' => __DIR__ . '/../view',
),
),
);