This repository provides a starter CodeIgniter 3 with Bootstrap 3 application. For this, it makes use of kenjis' CodeIgniter composer installer (see [1]). As a result, you can easily update the CodeIgniter core.
This application enhances the default CodeIgniter installation in the following ways:
- It provides basic user management, i. e., users can be created and they can login / logout
- This application is configured to support migrations (and uses them to setup the database)
- Support of themes; this starter application ships with the default Bootstrap 3 theme (several themes can be present at the same time and easily switched)
- Some other minor things, such as, 1) storing sessions in a database and 2) support for captchas is already built-in (and used)
- PHP 5.3.7 or later
composer
command (see composer installation in [2]) (composer is required if you which to update the application core with composer)
Perform the following installation steps:
- Download this repository
- Run
composer update
in the root directory of the project in order to update everything; in case Bootstrap 3 or jQuery related files are updated they have to be manually copied to the application/assets/[css or js] folders in order for these updates to become effective (maybe someone has an idea how to automatize this?) - Set the
base_url
array item in application/config/config.php (as with kenjis' CodeIgniter installation your webserver should be configured to point at the this-app/public directory) - Set
hostname, username, password, database
in application/config/database.php - Run the migrations (by browsing to the
migrate
controller; afterwards, setmigration_enabled
in application/config/migration.php tofalse
if you no longer which to use / support migrations or for productive use!) - Set
sess_driver
todatabase
in application/config/config.php (in order for the just-described migration run to work this has to be set tofiles
in the first place) - Optional: Create a first user by browsing to the action
user/create
[1] https://github.com/kenjis/codeigniter-composer-installer
[2] https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx