1. Hex CodeIgniter
  2. CodeIgniter HMVC

Commits

Hex CodeIgniter  committed 10c371e

给 Module 增加私有方法

  • Participants
  • Parent commits fa9d1aa
  • Branches default

Comments (0)

Files changed (1)

File application/core/MY_Loader.php

View file
 
 		$module_load =& $CI->$class_name->load;
 
-		if (method_exists($CI->$class_name, $method))
+		if (strncmp($method, '_', 1) != 0 && in_array(strtolower($method), array_map('strtolower', get_class_methods($class_name))))
 		{
 			ob_start();