ZfcUserLastConnectionDate
, (*1)
Introduction
ZfcUserLastConnectionDate is a ZF2 module providing an automatic update of user's last connection
date for each connection with ZfcUser., (*2)
For more informations about ZfcUser : ZfcUser, (*3)
Requirements
Installation
Get the module
With composer
-
Add this project and in your composer.json:, (*4)
"require": {
"momzor/zfc-user-last-connection-date": "dev-master"
}
-
Run the command:, (*5)
$ php composer.phar update
Module Activation
In your application.config.phpfile :, (*6)
return array(
'modules' => array(
// ...
'ZfcUserLastConnectionDate',
),
// ...
);
Update Your Model:, (*7)
By Extending ZfcUserLastConnectionDate User entity:, (*8)
use ZfcUserLastConnectionDate\Entity\LastConnectionDateUser;
class User extends LastConnectionDateUser
{
}
OR if you don't want to extends it you can use the Trait :, (*9)
use ZfcUserLastConnectionDate\Entity\LastConnectionTrait;
class User extends ZfcUser
{
use LastConnectionTrait;
}
Update Your database schema:, (*10)
There are some SQL example in ./vendor/momzor/zfc-user-last-connection-date/data/, (*11)
Navigate to http://yourproject/user/login., (*12)
Configuration
There is nothing to configure !, (*13)