...

World Wide Web Server 2012-07-04 16:03:34 -07:00
parent 9e3a7e97ee
commit ac364be6f3

@ -4,6 +4,8 @@ This is a solution for people that are looking for a way to keep associated mode
It uses two extended core classes; MY_Loader and MY_Router, both of which should be placed in your application/libraries/ folder.
You will also need to create the application/modules/ folder.
[b]application/libraries/MY_Loader.php[/b]
[code]<?php
if (!defined('BASEPATH')) {
@ -157,4 +159,13 @@ class MY_Router extends CI_Router
parent::_validate_segments($segments);
}
}
?>[/code]
?>[/code]
[h3]How to use[/h3]
A module consists of at least one controller and might include a number of models and/or views. These must be placed in the application/modules/MODULENAME/ folder (with MODULENAME being the name of your module, ie. blog, forum, etc).
The files must be places in the following folders:
/system/application/modules/MODULENAME/models/
/system/application/modules/MODULENAME/views/
/system/application/modules/MODULENAME/controllers/