Hao Luo
Hao Luo

Reputation: 1891

How to separate MVC folders out of application directory in codeigniter?

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!

Upvotes: 0

Views: 870

Answers (2)

bruhbruh
bruhbruh

Reputation: 311

I suggest you use links placed in the directory you desire pointing to the folders in the application folder. I wouldn't recommend moving those folders out of the application folder.

Cheers.

Upvotes: -1

Snger
Snger

Reputation: 1384

Hierarchical model–view–controller (HMVC) is a software architectural pattern, a variation of Model–view–controller (MVC) similar to Presentation-abstraction-control (PAC),more info in wiki
I hope you have enjoyed this tutorial.

Upvotes: 2

Related Questions