Router problem in zf3, when use two individual module

For programming and general questions on Zend Framework

Router problem in zf3, when use two individual module

Postby amarbhanu on Sat Apr 29, 2017 8:59 pm

First individual module is working but when second module implement then show 404 page with error page show in second individual module.
module.config.php of second individual module
Code: Select all
'router' => [
        'routes' => [
            'home' => [   //die("i am here!!");
                'type'    => Segment::class,
                'options' => [
                    'route' => '/broker/',
                /**/'defaults' => [
                        'controller' => Broker\Controller\IndexController::class,
                        'action'     => 'index',
                    ],/**/
                ],
            ],
            'brokerindex'=>[
                'type'    => Segment::class,
                'options' => [
                  //  'route'    => '/broker[/][:action][/:id]',
                    //'route' => '/album[/:action][/:id]',
                    'route' => '/broker/index/index',
               'constraints' => [
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ],
                    'defaults' => [
                        'controller' => Broker\Controller\IndexController::class,
                        'action'     => 'index',
                    ],

                ],
            ],
amarbhanu
 
Posts: 15
Joined: Mon May 11, 2009 2:45 pm

Re: Router problem in zf3, when use two individual module

Postby amarbhanu on Sat Apr 29, 2017 9:07 pm

I got this msg

404 error occurred
Page not found
'The requested URL could not be matched by routing.'
No exception
amarbhanu
 
Posts: 15
Joined: Mon May 11, 2009 2:45 pm


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 5 guests