0
votes

while i change layout in different mudule on zf3, there is a error caused.

Fatal error: Uncaught Zend\Router\Exception\RuntimeException: Route with name "" not found in /mnt/shared/zf3.local/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php:354 Stack trace: #0 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Helper/Url.php(106): Zend\Router\Http\TreeRouteStack->assemble(Array, Array) #1 [internal function]: Zend\View\Helper\Url->__invoke('/passport') #2 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Url), Array) #3 /mnt/shared/zf3.local/module/Passport/view/layout/layout.phtml(42): Zend\View\Renderer\PhpRenderer->__call('url', Array) #4 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include('/mnt/shared/zf3...') #5 /mnt/shared/zf3.local/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render() #6 /mnt/shared/zf3.local/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(O in /mnt/shared/zf3.local/vendor/zendframework/zend-router/src/Http/TreeRouteStack.php on line 354

i have no idea to solve this problem.

i used the tutorial : How to set different layouts for different modules in Zend Framework 3

1

1 Answers

0
votes

You can check implementation or just use this module

Change layout per module