php - Zend Route is not loading the controllers -


i have route settings:

return array( 'router' => array(     'routes' => array(         'padrao' => array(             'type' => 'segment',             'options' => array(                 'route' => '/:controller[/:action][/:id]',                 'constrants' => array(                     'id' => '[0-9]+'                 ),                 'defaults' => array(                     'controller' => 'index',                     'action' => 'index'                  ),             ),         ),     ), ), 'service_manager' => array(     'abstract_factories' => array(         'zend\cache\service\storagecacheabstractservicefactory',         'zend\log\loggerabstractservicefactory',     ),  ),  'controllers' => array(     'invokables' => array(         'index' => 'academia\controller\indexcontroller',         'usuarios' => 'academia\controller\usuariocontroller'     ), ), 

the controllers created , views to,but put "http://server.com" or "http://server.com/index" or "http://server.com/usuarios/list", 404 errors in browser.in first case "http://server.com" 404 in zend page,in others cases 404 error default apache.there forget?i saw others similar questions here stackoverflow index controller didn't work in case 2 controllers don’t work.

any suggestions?

after research discovered problem apache server,after enabling apache rewrite module routes worked.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -