mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-04 16:42:45 +00:00
List and show user details, new model User
This commit is contained in:
20
application/models/user_model.php
Normal file
20
application/models/user_model.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* User model that we use to control our users
|
||||
*/
|
||||
class User_model extends MY_Model
|
||||
{
|
||||
public $before_create = array( 'timestamps' );
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function timestamps($ecard)
|
||||
{
|
||||
$ecard['created_at'] = $ecard['updated_at'] = date('Y-m-d H:i:s');
|
||||
return $ecard;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user