Skip to content

Commit 887eb5e

Browse files
committed
refactor: Base_Loader class
Signed-off-by: otengkwame <developerkwame@gmail.com>
1 parent 78c7fe9 commit 887eb5e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Core/core/Base_Loader.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ class Base_Loader extends \CI_Loader
9696
*/
9797
protected $_ci_form_paths = [];
9898

99+
/**
100+
* Holds current module controller
101+
*
102+
* @var
103+
*/
104+
protected $controller;
105+
99106
/**
100107
* Constructor
101108
*
@@ -177,7 +184,10 @@ public function database($params = '', $return = false, $query_builder = null)
177184
return $this;
178185
}
179186

180-
/** Load a module helper **/
187+
/**
188+
* Load a module helper
189+
* @return mixed
190+
*/
181191
public function helper($helper = [])
182192
{
183193
if (is_array($helper)) return $this->helpers($helper);
@@ -792,7 +802,7 @@ public function action($action)
792802
public function actions(array $actions)
793803
{
794804
foreach ($actions as $action => $alias) {
795-
(is_int($action)) ? $this->action($alias) : $this->action($action, null, $alias);
805+
(is_int($action)) ? $this->action($alias) : $this->action($action);
796806
}
797807
return $this;
798808
}

0 commit comments

Comments
 (0)