diff --git a/cli.php b/cli.php index 85ebed6..911d754 100644 --- a/cli.php +++ b/cli.php @@ -106,7 +106,12 @@ class cli if (count ($files) === 0 && $this->EXPERT === TRUE) die ("No controllers/models available in ".getcwd()."\n"); foreach ($files as $file) - $classes[$file] = substr (strstr ($file, "_"), 1, -4); + { + if (strpos ($file, "_")) + $classes[$file] = substr (strstr ($file, "_"), 1, -4); + else + $classes[$file] = str_replace ("/", "\\", substr ($file, 0, -4)); + } if (isset ($argv[0]) && $argv[0] === "-listonly") {