Files
ystavakylaecard/application/models/ecard_model.php
Ismo Vuorinen c10c9e3131 Initial commit, Ecard system build with CodeIgniter PHP framework
Currently working
- Basic structure
- Basic caching and gzip compression for speed
- Admin authentication
2013-07-11 07:42:03 +03:00

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;
}
}