Skip to content

Instantly share code, notes, and snippets.

View alfredwesterveld's full-sized avatar

Alfred Westerveld alfredwesterveld

View GitHub Profile
<?php defined('SYSPATH') or die('No direct script access.');
class User_Model extends ORM {
protected $ignored_columns = array('birthday_day', 'birthday_month', 'birthday_year');
public function validate(array & $array, $save = FALSE)
{
$array = Validation::factory($array)
->pre_filter('trim')