Advertisement
Eddz

Untitled

Aug 27th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. 'router' => array(
  2.         'routes' => array(
  3.             'campaign' => array(
  4.                 'type' => 'segment',
  5.                 'options' => array(
  6.                     'route' => '/campaign[/:id][/:action][/:response]',
  7.                     'constraints' => array(
  8.                         'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
  9.                         'id' => '[0-9]+',
  10.                         'response' => '[0-9]+',
  11.                     ),
  12.                     'defaults' => array(
  13.                         'controller' => 'Campaign\Controller\Index',
  14.                         'action' => 'index',
  15.                     ),
  16.                 ),
  17.             ),
  18.             'expired' => array(
  19.                 'type' => 'Literal',
  20.                 'options' => array(
  21.                     'route' => '/expired',
  22.                     'defaults' => array(
  23.                         'controller' => 'Fcm\Controller\Error',
  24.                         'action' => 'expired',
  25.                     ),
  26.                 ),
  27.             ),
  28.         ),
  29.     ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement