Our next activity will be about creating a new Users
module in Zend Framework 2.0. The Users
module will be used for managing users including user registration, authentication, and so on. We will be making use of ZendSkeletonModule
provided by Zend, shown as follows:
Navigate to the application's
module
folder:$ cd /var/www/CommunicationApp/ $ cd module/
Clone
ZendSkeletonModule
into a desired module name, in this case it isUsers
:$ git clone git://github.com/zendframework/ZendSkeletonModule.git Users
After the checkout is complete, the folder structure should look like the following screenshot:
Edit
Module.php
; this file will be located in theUsers
folder under modules (CommunicationApp/module/Users/module.php
) and change the namespace toUsers
. Replacenamespace ZendSkeletonModule;
withnamespace Users;
.The following folders can be removed because we will not be using them in our project:
* Users/src/ZendSkeletonModule
* Users/view/zend-skeleton-module...