PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Util/Render.php +10 -5 2.03.3.1 View file →
@@ -1,10 +1,12 @@
1 1 <?php
2 2
3 3 namespace BitCode\BitForm\Core\Util;
4 4
5 -class Render {
6 - public static function loadFile($path, $data) {
5 +class Render
6 +{
7 + public static function loadFile($path, $data)
8 + {
7 9 $file = BITFORMS_PLUGIN_DIR_PATH . $path . '.php';
8 10 extract($data);
9 11
10 12 ob_start();
@@ -13,12 +15,15 @@
13 15
14 16 return ob_get_clean();
15 17 }
16 18
17 - public static function view($path, $data = []) {
19 + public static function view($path, $data = [])
20 + {
21 + $file = BITFORMS_PLUGIN_DIR_PATH . $path . '.php';
22 + extract($data);
23 +
18 24 status_header(200);
19 -
20 - echo self::loadFile($path, $data);
25 + include $file;
21 26
22 27 exit(200);
23 28 }
24 29 }