Skip to content

Instantly share code, notes, and snippets.

@nomaanp
Created August 8, 2013 07:12

Revisions

  1. nomaanp created this gist Aug 8, 2013.
    46 changes: 46 additions & 0 deletions module.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    <?php
    return array(
    'controllers' => array(
    'invokables' => array(
    'Profile' => 'Profile\Controller\ProfileController',

    ),
    ),
    'router' => array(
    'routes' => array(
    'profile' => array(
    'type' => 'segment',
    'options' => array(
    'route' => '/profile',

    'defaults' => array(
    'controller' => 'Profile',
    'action' => 'index1',
    ),
    ),
    'may_terminate' => true,
    'child_routes' => array(
    'edit' => array(
    'type' => 'Segment',
    'options' => array(
    'route' => '/edit[/:id]',
    'constraints' => array(
    'id' => '[0-9]+',
    ),
    'defaults' => array(
    'controller' => 'Profile',
    'action' => 'edit'
    ),
    ),
    ),
    ), ),
    ),
    ),


    'view_manager' => array(
    'template_path_stack' => array(
    'profile' => __DIR__ . '/../view',
    ),
    ),
    );