Sample code for a CodeIgniter HMVC structure
CodeIgniter-3.1.9_HMVC — HTML Admin dashboard Template
By sunzandesign
Sample CodeIgniter HMVC backend code combining Bootstrap and the SB Admin backend template, including database connection and session table configuration notes.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Paired with Bootstrap and the SB Admin backend template
README gives the database connection configuration location and example fields
Explains how to create the ci_sessions table to enable the database session driver
Released under the MIT license, allowing modification and commercial use
Template Details
This is a sample CodeIgniter project using an HMVC structure, paired with Bootstrap and the SB Admin backend template, intended for building data management backend interfaces. The repository README, written in Thai, describes two basic configuration steps: filling in the database host, username, password, database name, and mysqli driver in application/config/database.php; and creating a ci_sessions table following the CodeIgniter session documentation to use the database session driver.
The project is positioned as sample code. The README does not provide installation steps, module breakdown, routing conventions, or a feature list, nor does it state whether complete CRUD pages are included. The preview images come from its demo site and show the backend dashboard and inner page appearance; they do not mean that all corresponding features are implemented in the repository.
The code is released under the MIT license, allowing free use, modification, commercial use, and distribution, but third-party assets such as images, fonts, and icons in the repository require separate license verification.
Is it right for your project?
Use Cases
- Developers who need a reference for CodeIgniter HMVC directory organization
- Projects preparing to build a Bootstrap-style data management backend
- Situations where you want to understand CodeIgniter database session table structure configuration
Suitable For
- Full-stack developers using CodeIgniter who want to try HMVC modular organization
- Personal or small-team projects needing an SB Admin-style backend interface starting point
- Developers who can set up the environment and configure the database themselves
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Configure hostname, username, password, database, and the mysqli driver in application/config/database.php
- 2
Create the ci_sessions table following the CodeIgniter session documentation, with fields including id, ip_address, timestamp, and data
- 3
The README does not provide complete installation steps; deployment must be completed by referring to the official CodeIgniter documentation
- 4
Third-party assets such as images, fonts, and icons in the repository require separate license verification
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis listing covers the free version in a public repository under the MIT license; the free scope is the code of this version and does not mean external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of this version's code are permitted.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses; the code's MIT license alone cannot be used to judge them.
- External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis
https://github.com/sunzandesign/CodeIgniter-3.1.9_HMVC/blob/master/license.txthttps://github.com/sunzandesign/CodeIgniter-3.1.9_HMVC/blob/master/README.mdPermission is hereby granted, free of charge
Original License Text
Compiled by DeepSeek based on repository license and README ·2026-10-11. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- Partly documented · 65 / 100
- Technologies
- HTML
- Website type
- Admin dashboard
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2018-07-30
- Screenshot last checked
- 2026-10-11
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies HTML as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-13
Inspect the recorded source material
SHA-256: f1b33ae1c2e3790862eac4b48857862aec056176023de369befb1fd01e9b2fd5
2026-10-11T20:40:46.748Z
Source file / repository# CodeIgniter-3.1.9_HMVC
# ตั้งค่าการเชื่อมต่อฐานข้อมูล
<p>application/config/database.php</p>
<pre>
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'test',
'dbdriver' => 'mysqli',
</pre>
https://codeigniter.com/user_guide/database/configuration.html
# สร้างตารางเก็บ Session
https://codeigniter.com/user_guide/libraries/sessions.html?highlight=session#database-driver
<blockquote>
<pre>
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
`data` blob NOT NULL,
KEY `ci_sessions_timestamp` (`timestamp`)
);
</pre>
</blockquote>Explore similar templates
Compare previews and descriptions within the same stack and category.

AdminLTE
An HTML admin dashboard built with Bootstrap 5 and vanilla JavaScript. Astro builds the documentation; React, Vue and Angular editions live in separate repositories.
HTML · Admin dashboard

gentelella
Gentelella v4 is a free, open-source admin dashboard template maintained by Colorlib, built with vanilla JavaScript, SCSS, and Vite 8 without Bootstrap or jQuery.
HTML · Admin dashboard

coreui-free-bootstrap-admin-template
A free Bootstrap admin template maintained by CoreUI, built on CoreUI's own UI component library. It provides compiled HTML pages and Pug template source code, covering dashboards, authentication, forms, components, icons, and error pages.
HTML · Admin dashboard

dashboards
A collection of responsive dashboard HTML templates open-sourced by Keen IO, built on CSS Grid, offering multiple prebuilt admin data interface layouts.
HTML · Admin dashboard

SB Admin 2
SB Admin 2 is a classic Bootstrap admin template from Start Bootstrap, offering dashboards, charts, tables, and common management pages.
HTML · Admin dashboard

Adminator-admin-dashboard
Adminator 4 is a vanilla HTML, CSS and JavaScript admin dashboard template with a CSS-variable token design system, built-in light and dark themes, no jQuery or Bootstrap dependency, and 18 pages covering dashboards, mail, calendar, charts, forms, tables and error pages.
HTML · Admin dashboard
