PHP Classes

File: config/module.config.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Album Manager   config/module.config.php   Download  
File: config/module.config.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: PHP Album Manager
Manage a list of albums with Zend Framework 2
Author: By
Last change:
Date: 7 years ago
Size: 998 bytes
 

Contents

Class file image Download
<?php
return array(
   
'controllers' => array(
       
'invokables' => array(
           
'Album\Controller\Album' => 'Album\Controller\AlbumController',
        ),
    ),
   
// The following section is new and should be added to your file
   
'router' => array(
       
'routes' => array(
           
'album' => array(
               
'type' => 'segment',
               
'options' => array(
                   
'route' => '/album[/:action][/:id]',
                   
'constraints' => array(
                       
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                       
'id' => '[0-9]+',
                    ),
                   
'defaults' => array(
                       
'controller' => 'Album\Controller\Album',
                       
'action' => 'index',
                    ),
                ),
            ),
        ),
    ),
   
'view_manager' => array(
       
'template_path_stack' => array(
           
'album' => __DIR__ . '/../view',
        ),
    ),
);