Commit 5fda5a9b by yeran

commit

1 parent b7c4d71f
Showing with 1 additions and 1 deletions
......@@ -176,7 +176,7 @@ class Router extends PhalconRouter implements ServiceAwareInterface
//采用的是原来传入函数形式的话则执行后面的404(在我的电脑上显示404,原因是我的访问地址经过了ld,重写apache规则后无404);
$module = $router->getModulename();
if (!empty($module)) {
$moduleDefinition = MODULES_PATH . '/' . ucfirst($module) . '/Module.php';
$moduleDefinition = MODULES_PATH . '/' . lcfirst($module) . '/Module.php';
if (is_file($moduleDefinition)) {
$moduleClass = 'Lestore\\' . ucfirst($module) . '\\Module';
$moduleObject = new $moduleClass;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!