mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-12 20:46:44 +00:00
Initial commit, Ecard system build with CodeIgniter PHP framework
Currently working - Basic structure - Basic caching and gzip compression for speed - Admin authentication
This commit is contained in:
committed by
Ismo Vuorinen
parent
345d8ea65a
commit
c10c9e3131
20
application/models/ecard_model.php
Normal file
20
application/models/ecard_model.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Ecard
|
||||
*/
|
||||
class Ecard_model extends MY_Model
|
||||
{
|
||||
public $before_create = array( 'timestamps' );
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function timestamps($book)
|
||||
{
|
||||
$book['created_at'] = $book['updated_at'] = date('Y-m-d H:i:s');
|
||||
return $book;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user