mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
6600235b47
commit
173299bd39
@ -19,4 +19,26 @@ In which case you will have to use [[File:Modular_Separation_PHP4.zip | my custo
|
||||
[h2]Usage[/h2]
|
||||
I would like to start with pointing out that you are still able to use models, views, controllers and other resources as usual when using Modular Separation. This also means that you can have global resources in your standard folders and call them from your modules. If you, on the other hand, want to get rid of the folders then you are free to do so, [b]with the exception of the controllers folder[/b].
|
||||
|
||||
Modules must be placed in the /application/modules/ folder. A module is a folder (the foldername is the name of the module) containing folders for models, views, controllers and other resources. These are not required and you do not have to add folders for e.g. models if you are not including any models in the module.
|
||||
Modules must be placed in the /application/modules/ folder. A module is a folder (the foldername is the name of the module) containing folders for models, views, controllers and other resources. These are not required and you do not have to add folders for e.g. models if you are not including any models in the module.
|
||||
|
||||
Just to make sure we are clear on the folderstructure, he is an example:
|
||||
[code]
|
||||
+system
|
||||
+application
|
||||
...
|
||||
+modules
|
||||
+account
|
||||
+controllers
|
||||
account.php
|
||||
+models
|
||||
user_model.php
|
||||
+views
|
||||
login.php
|
||||
register.php
|
||||
+news
|
||||
+controllers
|
||||
news.php
|
||||
+models
|
||||
news_model.php
|
||||
+views
|
||||
[/code]
|
Loading…
x
Reference in New Issue
Block a user