单应用内同时提供前台网站、后台管理面板与 API 站点三种入口
ci_bootstrap_3 — HTML 启动器模板
作者 waifung0207
基于 CodeIgniter 3 的多租户网站启动模板,在单个应用中同时提供前台、后台管理面板与 API 站点,并集成 HMVC、Ion Auth、Grocery CRUD、AdminLTE、Swagger 等工具。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
通过 CodeIgniter HMVC 扩展实现模块化目录结构,模块可独立包含控制器、模型、视图与配置
后台集成 AdminLTE 主题与 Grocery CRUD、Image CRUD,用于构建数据表格和图片管理界面
API 模块集成 Swagger UI,并借助 swagger-php 注解生成接口文档
内置前台与后台的用户认证流程,含注册、登录、找回密码与修改密码
提供 gulp 任务用于 CSS/JS 合并压缩与图片优化,输出到 assets/dist 目录
模板详细介绍
这是一个基于 CodeIgniter 3 的启动模板,目标是在单个 PHP 应用中同时支撑多租户形态:前台网站、后台管理面板和 API 站点。项目采用 CodeIgniter HMVC 扩展实现模块化结构,前台控制器与后台模块共用 MY_Controller 等核心类,视图可跨模块复用或按相同路径覆盖。
模板已预设多项开发所需的基础能力:前台与后台各自的用户认证流程(注册、登录、找回密码、修改密码等)、基于 AdminLTE 的后台界面、Grocery CRUD 与 Image CRUD 的表格和图片管理、集成 Swagger UI 的 RESTful API 端点、博客与封面图数据结构、表单构建库、面包屑与分页、多语言、邮件配置以及可从命令行调用的工具函数。资源管线通过 gulp 任务处理脚本压缩、图片优化等。
需要留意的是,项目 README 明确标注仍处于进行中状态,最后构建时间为 2017 年,仓库更新时间停留在 2018 年。README 中列出的待办事项包括完善文档、增强表单构建库字段类型、为 Grocery CRUD/Image CRUD 增加 Amazon S3 上传与图片裁剪等,说明部分能力尚未完成。环境方面,README 建议 PHP 5.6+、Apache 2.2+(启用 rewrite 模块)与 MySQL 5.5+,并注明 MariaDB 未测试。
适合你的项目吗?
适用场景
- 需要在一个 CodeIgniter 3 项目中同时搭建前台、后台与 API 的起步开发
- 希望以 HMVC 模块化方式组织控制器、模型与视图,并复用核心逻辑
- 需要快速获得带认证、CRUD 表格与图片管理的后台管理界面
- 需要为 RESTful 接口提供 Swagger 文档页面的项目
- 需要博客文章、封面轮播等预设数据结构作为内容管理起点
适合人群
- 熟悉 CodeIgniter 3 与 PHP 5.6+ 的开发者
- 接受以模板为起点进行二次开发、而非直接上线的项目
- 需要多租户结构(前台/后台/API)且愿意自行维护升级的团队
- 使用 Apache + MySQL 并可按 README 配置 rewrite 与数据库的环境
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后创建数据库并导入 /sql/latest.sql,再核对 /application/config/database.php 的连接配置
- 2
README 建议环境为 PHP 5.6+、Apache 2.2+(启用 rewrite 模块)与 MySQL 5.5+,MariaDB 未测试
- 3
后台预设了 webmaster、admin、manager、staff 四个账号,默认用户名与密码相同,使用前应修改
- 4
assets/uploads 目录需要可写权限,用于文件上传
- 5
项目仍处于进行中状态,README 提到升级流程在 v1.0 前不够友好,需自行关注
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 项目仍处于开发进行中状态,README 明确标注尚未完成,不适合直接用于生产环境,需自行评估与二次开发。
- 仅 PHP 5.6+、Apache 2.2+(启用 rewrite)与 MySQL 5.5+ 为推荐环境,其他环境未充分测试,MariaDB 明确未测试。
- 邮件配置默认使用 Mailgun 外部服务,实际使用需自行提供 Mailgun 账号与 API 密钥。
- Amazon S3 上传集成仍列于 TODO,尚未实现;如需该能力须自行开发。
- 图片裁剪功能仍列于 TODO,尚未实现,需自行补充。
- v1.0 发布前升级流程不够友好,仓库升级需按作者建议手动处理,维护成本较高。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
**Note: This project is still in progress, but welcome for any issues encountered**
README 原文
Below configuration are preferred; other environments are not well-tested, but still feel free to report and issues.
README 原文
email.php --- Created to centralize email configuration (default: using Mailgun)
README 原文
Grocery CRUD / Image CRUD file upload - add Amazon S3 integration
README 原文
Grocery CRUD / Image CRUD image upload - add cropping feature
README 原文
https://github.com/waifung0207/ci_bootstrap_3/blob/master/LICENSEhttps://github.com/waifung0207/ci_bootstrap_3/blob/master/README.mdAfter release the v1.0 version, I will try to keep the upgrade procedure more developer friendly.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 64 / 100
- 技术栈
- HTML
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2018-12-12
- 截图检查日期
- 2026-10-02
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 HTML。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: b1200bfe0dba53ba585e436e3deb80f3fca4cbb6f4143bbedd638fe82e235168
2026-10-02T07:41:30.608Z
来源文件 / 仓库## CodeIgniter 3 Bootstrap
**Latest Build: 2017-03-24**
**Note: This project is still in progress, but welcome for any issues encountered**
A starter template that supports multi-tenant (Frontend / Admin Panel / API) website in a single application.
This repository is developed upon the following tools:
* [CodeIgniter](http://www.codeigniter.com/) (v3.1.3) - PHP framework
* [CodeIgniter HMVC Extensions](https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc) - modular structure by [wiredesignz](http://wiredesignz.co.nz/)
* [codeigniter-base-model](https://github.com/jamierumbelow/codeigniter-base-model) - more advanced CRUD functions for models by [jamierumbelow](https://github.com/jamierumbelow)
* [codeigniter-restserver](https://github.com/chriskacerguis/codeigniter-restserver) - base setup for API module
* [Ion Auth](http://benedmunds.com/ion_auth/) - authentication library for CodeIgniter by [Ben Edmunds](http://benedmunds.com/)
* [Bootstrap](http://getbootstrap.com/) (v3.3.7) - popular frontend framework
* [Grocery CRUD](http://www.grocerycrud.com/) (v1.5.8) - feature-rich library to build CRUD tables
* [Image CRUD](http://www.grocerycrud.com/image-crud) (v0.6) - CRUD library for image management
* [AdminLTE](https://github.com/almasaeed2010/AdminLTE) (v2.3.11) - bootstrap theme for Admin Panel
### Features
This repository contains setup for rapid development:
* Multi-tenant (e.g. Frontend Website, Admin Panel, API) website in single application
* Modular design by CodeIgniter HMVC extension
* Custom config files (sites.php, locale.php) for easy configuration of website behavior
* Admin Panel with AdminLTE v2 theme, and Grocery CRUD integration
* Admin Panel includes usage of [Sortable](http://rubaxa.github.io/Sortable/) library
* API Site with [Swagger](http://swagger.io/) UI integrated, via annotations supported by [swagger-php](https://github.com/zircote/swagger-php) library
* API Site to handle RESTful endpoints, with shortcut functions to grab parameters and display results
* User authentication for Frontend Website (Sign Up, Login, Forgot Password, etc.)
* User authentication for Admin Panel (Login, Change Password, etc.)
* Preset layouts and templates
* Preset asset pipeline (e.g. minify scripts, image optimization) via gulp (reference from [gulp-starter](https://github.com/greypants/gulp-starter))
* Preset data structure for Blogging (with pagination) and Cover Photos (carousel), which can be managed from Admin Panel
* Form Builder library to help with form rendering with Bootstrap theme, form validation, etc.
* Breadcrumb and Pagination handling fit with Bootstrap theme
* Custom 404 pages for Frontend Website and Admin Panel
* Multilingual support
* Email config setup
* Functions to be called from CLI (e.g. daily cron job, database backup)
* ... more coming!
### Demo Project
A demo repository can be found from: https://github.com/waifung0207/ci_bootstrap_3_demo
### Server Environment
Below configuration are preferred; other environments are not well-tested, but still feel free to report and issues.
* **PHP 5.6+**
* **Apache 2.2+** with rewrite mod enabled
* **MySQL 5.5+** (not tested on MariaDB)
### Setup Guide
1. git clone this repo
2. Create a database (e.g. named "ci_bootstrap_3"), then import /sql/latest.sql into MySQL server
3. Make sure the database config (/application/config/database.php) is set correctly
4. You should be able to access Frontend Website, Admin Panel and API Site (with Swagger Doc) respectively
5. Visit the Demo Controllers (exist in both Frontend / Admin Panel / API) for sample usage
**Note** For more advanced workflow (includes repo upgrade), please have a look on my suggestion in [this issue](https://github.com/waifung0207/ci_bootstrap_3/issues/42). After release the v1.0 version, I will try to keep the upgrade procedure more developer friendly.
### Admin Users (and default login accounts)
There are 4 preset users for Admin Panel:
* Webmaster (default username & password are both "webmaster", belongs to the webmaster group)
* Admin (default username & password are both "admin", belongs to the admin group)
* Manager (default username & password are both "manager", belongs to the manager group)
* Staff (default username & password are both "staff", belongs to the staff group)
### Folder Structure
Explanation on the folder structure which supports HMVC (only showing the highlighted folders and files).
```
application/ --- Main CodeIgniter source files
config/
production/ --- Configuration when ENVIRONMENT is set as "production"
autoload.php --- By default, some files are loaded for this repo
ci_bootstrap.php --- Core configuration file for all sites
database.php --- Need to verify to ensure connection with MySQL database
email.php --- Created to centralize email configuration (default: using Mailgun)
form_validation.php --- Created to centralize validation forms for all forms, include ReCAPTCHA settings
routes.php --- Changed default controller from Welcome to Home
controllers/ --- Controllers for Frontend Website; extends from MY_Controller (except Cli)
Cli.php --- Utility function that can only be called from command line
Home.php --- Default controller for Frontend Website
core/ --- Extending CodeIgniter core classes; can also be used within modules
MY_Controller.php --- Important class which contains shared logic of all controllers
MY_Loader.php --- Required for HMVC extension
MY_Model.php --- Contains shared function for model classes
MY_Router.php --- Required for HMVC extension
helpers/ --- Contains custom helper functions being used throughout this repo
language/ --- Preset language files
libraries/ --- Custom libraries (e.g. Form Builder, System Message)
MY_Email.php --- Enhanced email library, includes work with Mailgun API
models/ --- Sample model extending from MY_Model
modules/ --- Each module can be accessed by http://{base_url}/{module_name}/{module_controller}/, etc.
admin/ --- Module for Admin Panel
config/ --- Configuration for Admin Panel (overriding application/config/)
controllers/ --- Controllers for Admin Panel; also extends from MY_Controller
libraries/ --- Libraries specific for Admin Panel
models/ --- Models only being used in Admin Panel
views/ --- Views for Admin Panel; can reuse Frontend views, or override by using same path/filename
adminlte/ --- Module with AdminLTE widgets
api/ --- Another module specific for API endpoints
third_party/ --- 3rd party files (HMVC extension, Grocery CRUD, Rest Server, etc.)
views/ --- Views for Frontend Website, can also be used by modules unless overrided
assets/ --- Folder for public files
api/ --- Swagger UI assets
dist/ --- Post-processed scripts and images via gulp tasks (don't manually edit files here!)
grocery_crud/ --- Asset files from Grocery CRUD library
image_crud/ --- Asset files from Image CRUD library
uploads/ --- Default folder for upload files, where permission should set as writable
gulpfile.js/ --- Task runner following gulp-starter practice
tasks/ --- Gulp tasks
config.js --- Configuration for Gulp tasks
screenshots/ --- Screenshot images for preview
sql/ --- MySQL files
backup/ --- Files which will be created when backup database from CLI
core/ --- Files contains core data (e.g. Ion Auth)
latest.sql --- Latest version of all preset data
src/ --- Folder for non-public source files
css/ --- Custom CSS files append to each site
images/ --- Source image files before optimization
js/ --- Custom CSS files append to each site
sass/ --- SASS files for styling
theme/ --- Default folder for additional theme files
system/ --- CodeIgniter core files (unchanged as clean CI3 installation)
.htaccess --- URL rewrite for Apache web server (require mod enabled)
```
### Preset Gulp Tasks
The gulpfile.js folder is prepared with following tasks available:
* **default**: run **build** task first, then **watch** for file change
* **build**: run **imagemin**, **cssmin** and **uglify** tasks in parallel
* **rebuild**: run **clean** task first, then **copy**, **imagemin**, **cssmin** and **uglify** tasks in parallel
* **clean**: remove all files inside the dist folder (default: /assets/dist)
* **copy**: copy required files to dist folder
* **cssmin**: concat and minify CSS files
* **imagemin**: optimize images (jpg, png, gif, svg) and output to dist folder (default: /assets/dist/images)
* **uglify**: concat and minify (uglify) JS files
* **watch**: monitor JS / CSS / image files and execute specific tasks upon changes
### Screenshots
Frontend - Home:

Admin Panel - Home:

More screenshots can be viewed from the [screenshots folder](https://github.com/waifung0207/ci_bootstrap_3/blob/master/screenshots/) under this repository.
### TODO
* Changelog file
* Better documentation (e.g. on [Gitbook](http://gitbook.com/))
* Enhance Form Builder library to support more field types
* Grocery CRUD / Image CRUD file upload - add Amazon S3 integration
* Grocery CRUD / Image CRUD image upload - add cropping feature
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

startbootstrap-simple-sidebar
An off canvas sidebar navigation Bootstrap HTML template created by Start Bootstrap
HTML · 启动器

adminkit
AdminKit is a free & open-source HTML dashboard & admin template based on Bootstrap 5
HTML · 后台

Landing-Page
Tailwind CSS Starter Template - Landing Page
HTML · 企业官网

light-bootstrap-dashboard
Light Bootstrap Dashboard is an admin dashboard template designed to be beautiful and simple.
HTML · 后台

sing-app
💥Free and open-source admin dashboard template built with Bootstrap 4.5 💥
HTML · 后台

startbootstrap-modern-business
A multipurpose Bootstrap full website template created by Start Bootstrap
HTML · 启动器
