Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child_routes #13

Open
str opened this issue Jun 6, 2015 · 2 comments
Open

child_routes #13

str opened this issue Jun 6, 2015 · 2 comments

Comments

@str
Copy link

str commented Jun 6, 2015

I'm trying to figure out how to create a route so I don't have to create a route for each page I have. I thought it would using child_routes

            'page' => [
                'type'    => 'Literal',
                'options' => ['defaults' => [
                    'controller' => 'PhlySimplePage\Controller\Page',
                    'template'   => 'page/:page',
                ], 'route' => '/page'],
                'may_terminate' => true,
                'child_routes' => ['default' => [
                    'type'    => 'Segment',
                    'options' => [
                        'defaults'    => [],
                        'route'       => '/:page',
                        'constraints' => ['page' => '[a-zA-Z][a-zA-Z0-9_-]*',],
                    ],
                ]],
            ],

or something similar. Is this possible? If so, what am I doing wrong?

@vrkansagara
Copy link
Contributor

@str Do you have any solution of this!

@str
Copy link
Author

str commented Nov 15, 2017

@vrkansagara I went away from ZF, I preferred convention over configuration, and ZF went away from that. I'm sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants