0

I'm very new at codeigniter. I was just wondering if there is anyway that I can separate the controllers, models, and views folders out of the application folder or put them in a sub-directory.

I understand it's not crucial but it would be easier to find when it's just these three folders in a separate folder.

For example the structure could be as a sub-directory:
-> application
   -> MVC
      -> controllers
      -> models
      -> views
   -> ...

My question is if there is a way, what configuration would I have to change in order to make the move?

Thank you!

4

2 回答 2

2

分层模型-视图-控制器 (HMVC) 是一种软件架构模式,是模型-视图-控制器 (MVC) 的变体,类似于 Presentation-abstraction-control (PAC),<a href="http://en.wikipedia. org/wiki/HMVC" rel="nofollow">更多信息在 wiki
我希望你喜欢这个教程

于 2012-09-24T14:58:14.647 回答
-1

我建议您使用放置在您希望指向应用程序文件夹中文件夹的目录中的链接。我不建议将这些文件夹移出应用程序文件夹。

干杯。

于 2012-09-25T00:43:57.077 回答