HMVC library for CodeIgniter 3.1
- CodeIgniter 3.1
Make sure your CodeIgniter project installed already.
Move MY_Loader.php and MY_Router.php to /application/core/.
Move MX folder to /application/third_party/.
Create modules folder in application.
Create new folder called your_modules so the structure seems like
./ your_project
|- application
|-- modules
|--- your_moduleCreate controllers in your new module so the structure seems like
./ your_project
|- application
|-- modules
|--- your_module
|---- controllersRepeat sixth step to create models and views
Check the directory seems like this
./ your_project
|- application
|-- modules
|--- your_module
|---- controllers
|---- models
|---- viewsFinally, you can start write your code in the controllers, models and views in each modules you made
Fork this repo, wrote your own code, create new issue then make pull request. Feel free to contribute this repo.