Skip to content

Commit

Permalink
Modified Modules::run so that up to three variables can be acccepted.
Browse files Browse the repository at this point in the history
  • Loading branch information
trongate committed Sep 28, 2019
1 parent 5824026 commit 312ed0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engine/Modules.php
@@ -1,7 +1,7 @@
<?php
class Modules {

public static function run($moduleControllerAction, $data=NULL) {
public static function run($moduleControllerAction, $first_value=NULL, $second_value=NULL, $third_value=NULL) {
$debris = explode('/', $moduleControllerAction);
$target_module = $debris[0];
$target_controller = ucfirst($target_module);
Expand All @@ -28,7 +28,7 @@ public static function run($moduleControllerAction, $data=NULL) {

require_once $controller_path;
$controller = new $target_controller($target_module);
return $controller->$target_method($data);
return $controller->$target_method($first_value, $second_value, $third_value);
}

}
2 changes: 1 addition & 1 deletion engine/license.txt
Expand Up @@ -3,7 +3,7 @@
*
* An open source PHP framework for web developers who like to break the rules
*
* Version: 1.2.4003
* Version: 1.2.4004
*
* This product is released under the MIT License (MIT)
*
Expand Down
2 changes: 1 addition & 1 deletion license.txt
Expand Up @@ -3,7 +3,7 @@
*
* An open source PHP framework for web developers who like to break the rules
*
* Version: 1.2.4003
* Version: 1.2.4004
*
* This product is released under the MIT License (MIT)
*
Expand Down

0 comments on commit 312ed0a

Please sign in to comment.