Skip to content

Commit

Permalink
Merge pull request bcit-ci#860 from tomcode/hmvc-lite-subfolderLateLo…
Browse files Browse the repository at this point in the history
…adingController

Fix for Hmvc lite subfolder late loading controller
  • Loading branch information
narfbg committed Jun 12, 2012
2 parents 79cdddb + 95fc1df commit 772db7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/core/Loader.php
Expand Up @@ -341,7 +341,7 @@ public function controller($route, $name = NULL, $call = TRUE)
}

// Include source and instantiate object
include($path.'controllers/'.$subdir.strtolower($class).'.php');
include($path.'controllers/'.$subdir.'/'.strtolower($class).'.php');
$classnm = ucfirst($class);
$this->CI->$name = new $classnm();

Expand Down

0 comments on commit 772db7b

Please sign in to comment.