sasezaki/netorare

routing & markup rendering mechanism like blosxom as zf2 module. offers static site generating, too

dev-master 2013-10-31 14:06 UTC

This package is auto-updated.

Last update: 2024-11-06 15:56:10 UTC


README

Create configuration in your application (eg. config/autoload/netorare.local.php)

<?php
use Netorare\Mvc\Router\RoutePerTemplateIterator as Routes;

return [
    'router' => [
        'routes' => Routes::factory(__DIR__.'/../../module/Application/view/application/pages')
    ],
    'view_manager' => [
        'strategies' => [
            'NetorarePathinfoExtensionStrategy'
        ]
    ],
];

Netorare\Mvc\Router\RoutePerTemplateIterator::factory() generates routes from set directory (factory() parameter)