Skip to content

Instantly share code, notes, and snippets.

@jeffery
Last active December 20, 2015 14:49

Revisions

  1. jeffery renamed this gist Aug 4, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. jeffery created this gist Aug 4, 2013.
    36 changes: 36 additions & 0 deletions ZfUser Route
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    <?php
    return array (
    'controllers' => array (
    'invokables' => array (
    'Account\Controller\Index' => 'Account\Controller\IndexController',
    ),
    ),
    // The following section is new and should be added to your file
    'router' => array (
    'routes' => array (
    'account' => array (
    'type' => 'segment',
    'options' => array (
    'route' => '/account[/][:action][/:id]',
    'constraints' => array (
    'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
    ),
    'defaults' => array (
    'controller' => 'Account\Controller\Index',
    'action' => 'index',
    ),
    ),
    ),
    'zfcuser' => array (
    'options' => array (
    'route' => '/account',
    ),
    ),
    ),
    ),
    'view_manager' => array (
    'template_path_stack' => array (
    'account' => __DIR__ . '/../view',
    ),
    ),
    );