In this section will make configuration changes to the Users
module to enable it to work with the newly created controller and views using the following steps:
Autoloader configuration – The default autoloader configuration provided by the
ZendSkeletonModule
needs to be disabled; this can be done by editingautoload_classmap.php
and replacing it with the following content:<?php return array();
Module configuration – The module configuration file can be found in
config/module.config.php
; this file needs to be updated to reflect the new controllers and views that have been created, as follows:Controllers – The default controller mapping points to the
ZendSkeletonModule
; this needs to be replaced with the mapping shown in the following snippet:'controllers' => array( 'invokables' => array( 'Users\Controller\Index' => 'Users\Controller\IndexController', ), ),
Views – The views for the module have...