diff options
Diffstat (limited to 'system/init/init_validation.php')
-rw-r--r-- | system/init/init_validation.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/init/init_validation.php b/system/init/init_validation.php new file mode 100644 index 000000000..a320c3e5b --- /dev/null +++ b/system/init/init_validation.php @@ -0,0 +1,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'; + +?>
\ No newline at end of file |