phly / PhlySimplePage

ZF2 module for easily creating static pages
Other
35 stars 12 forks source link

Custom (non default) Layout #2

Open alrik opened 11 years ago

alrik commented 11 years ago

It would be great to have the possibility to set a custom layout for a simple page.

I could imagin something like

return array(
    'router' => array(
        'routes' => array(
            'about' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/about',
                    'defaults' => array(
                        'controller' => 'PhlySimplePage\Controller\Page',
                        'template'   => 'application/pages/about',
                        'layout' => 'layout/static-pages'
                    ),
                ),
            ),
        ),
    ),
);