mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-01-26 03:04:00 +00:00
Currently working - Basic structure - Basic caching and gzip compression for speed - Admin authentication
21 lines
341 B
PHP
21 lines
341 B
PHP
<?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;
|
|
}
|
|
}
|