Angularjs HMVC问题。铁路超高荷载控制器或模型

Angularjs HMVC问题。铁路超高荷载控制器或模型,angularjs,html,codeigniter,hmvc,Angularjs,Html,Codeigniter,Hmvc,请原谅我英语不好 我正在使用angularjs和codeigniter开发一个web应用程序,使用第三方库作为HMVC(github)和angularjs的Ui路由器。在我的主要项目中,我已经安装了多个youtube Tuto上显示的HMVC库,但我无法使它们正常工作 问题是我无法在模块文件夹或子文件夹中加载控制器或模型。一开始我以为这是因为我在项目中的一些路线,所以我决定在一个全新的安装上尝试HMVC。找到了本教程,接着是>>我找到的一些其他stackoverflow解决方案,因为它没有正确扩

请原谅我英语不好

我正在使用angularjs和codeigniter开发一个web应用程序,使用第三方库作为HMVC(github)和angularjs的Ui路由器。在我的主要项目中,我已经安装了多个youtube Tuto上显示的HMVC库,但我无法使它们正常工作

问题是我无法在模块文件夹或子文件夹中加载控制器或模型。一开始我以为这是因为我在项目中的一些路线,所以我决定在一个全新的安装上尝试HMVC。找到了本教程,接着是>>我找到的一些其他stackoverflow解决方案,因为它没有正确扩展

我只能调用codeigniter默认文件夹上的>应用程序>控制器上的控制器。但是我不能在>应用程序>模型中加载模型。显示如下错误:“无法找到您指定的型号:xxModel”

无法在>应用程序>模块>xx>控制器>xx控制器中加载控制器

my.Htaccess文件:此文件:

<IfModule mod_rewrite.c>
RewriteEngine On

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

重新启动发动机
#检查用户是否试图访问有效文件,
#例如图像或css文档,如果这不是真的,它会发送
#请求index.php
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
#最后一个条件允许访问图像和css文件夹以及robots.txt文件
1美元^(索引\.php | public | images | robots\.txt | css)
重写规则^(.*)$index.php/$1[L]
我的文件夹如下所示:

    • 系统
    • 应用
      • 控制器->(此处仅加载默认控制器)
      • 型号->(未找到从上述控制器加载的型号)
      • 模块-->(不从此处加载控制器)
    • 模块-->(应在此处)
      • 模块
        • 控制器
    • Html->(视图文件夹,可以从应用程序>控制器中的控制器加载视图)

救命啊!。谢谢如有必要,请告诉我发布更多信息。

您使用的是哪个版本的CI?为什么你有两个模块文件夹,因为你只需要有/application/modules?模块位置不能在公共可用位置。我使用的是ci3我没有2个模块文件夹。我在应用程序文件夹中有一个。但根本不起作用。文件夹(粗体)是我想要保存模块文件夹的地方,我的应用程序应该能够从那里查找我的模型和控制器。我在某个地方读到,将模块文件夹放在应用程序文件夹之外是一个很好的做法。谢谢你的回答。
<IfModule mod_rewrite.c>
RewriteEngine On

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>