<?php
include_once(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."Validation.php");
function validateRuleAutoload($class) {
if (substr($class, 0, strlen("Validation_Rule_")) === 'Validation_Rule_') {
include dirname(__FILE__).DIRECTORY_SEPARATOR.strtr(strtolower(substr($class, strlen("Validation_Rule_"))), '_', DIRECTORY_SEPARATOR).'.php';
}
}
spl_autoload_register('validateRuleAutoload');
set_include_path(get_include_path().PATH_SEPARATOR.realpath(dirname(__FILE__)));
|