summaryrefslogtreecommitdiffstats
path: root/system/init/init_validation.php
blob: a320c3e5b780af14958bef3867e6ba942a507de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Loads and instantiates validation class
 *
 * @access	private called by the app controller
 */	

if ( ! class_exists('CI_Validation'))
{
	require_once(BASEPATH.'libraries/Validation'.EXT);
}

$obj =& get_instance();
$obj->validation = new CI_Validation();
$obj->ci_is_loaded[] = 'validation';

?>