An open API service indexing awesome lists of open source software.

https://github.com/fauzan1892/codeigniter4-hmvc

CodeIgniter 4 HMVC
https://github.com/fauzan1892/codeigniter4-hmvc

codeigniter-template codeigniter4 hmvc-codeigniter php php-framework php8

Last synced: 20 days ago
JSON representation

CodeIgniter 4 HMVC

Awesome Lists containing this project

README

          

# Codeigniter4-HMVC

This is my version of Hierarchical model–view–controller (HMVC) project starter using CodeIgniter4 framework.

### Screenshot Example

![Home Page](assets/images/home-ci4-hmvc.png)


## HMVC Structure
### Default Structure
By default, there is the structure of Codeigniter4-HMVC

```
assets
\{YourFolderCSSAssets}
ci4-app
\DefaultFilesForCodeIgniter4
Modules
\{YourModule}
\Controllers
{YourController}.php
\Models
{YourModel}.php
\Views
{YourView}.php
Routes.php
Templates
\Controllers
{BaseController}.php
\helpers
{YourCustomHelper}.php
\components
{YourViewComponents}.php
\layouts
{YourViewLayout}.php
```

### Screenshot Folder

![Create Folder](assets/images/folder.png)

### Custom Structure

You can structuring your module freely, because CodeIgniter4 use PSR4.
If you want to change the structure of Routes.php in Config Module folder or the structure of Module Controllers, you must change app/Config/Routes.php in HMVC

## Contribute

You can contribute for extend CodeIgniter4 capabilities or add command prompt for development use by fork this repository. After that, you can make pull request.