We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d7a091 commit dce8aedCopy full SHA for dce8aed
2 files changed
helpers/form_validation_helper.php
@@ -0,0 +1,15 @@
1
+<?php
2
+defined('BASEPATH') OR exit('No direct script access allowed');
3
+
4
+if (!function_exists('rule_group')) {
5
+ function rule_group(string $group):array
6
+ {
7
+ if (!file_exists(APPPATH."validations/$group.php")) {
8
+ throw new Exception("Validation rule group file $group.php does not exist.");
9
+ }
10
11
+ include APPPATH . "validations/$group.php";
12
13
+ return $config;
14
15
+}
libraries/Platform.php
@@ -45,6 +45,7 @@ function __construct()
45
});
46
47
get_instance()->load->splint(self::PACKAGE, '%platform');
48
+ get_instance()->load->splint(self::PACKAGE, '%form_validation');
49
}
50
/**
51
* [getInstalledPackages List out all currently installed packages within the
0 commit comments