Skip to content

A base admin system setup using CodeIgniter and Twitter bootstrap

License

Notifications You must be signed in to change notification settings

mbroadley/ci-bootstrap-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Configuration

Default Controller

As standard this project is setup to automatically redirect to /admin/login. This can be altered by changing the default_controller setting in application/config/routes.php

Config file

Located in application/config/config.php. There isn't much to change here these days, you can fill in the base_url if you like, and if you are using URL rewriting to get rid of the index.php from your URLs then you will want to set the index_page setting as a blank string too.

The main thing to change here is the encryption_key setting. This is used to protect sessions and generate passwords.

Database

A sample database is included in the database.sql file. This just contains an admin user table as otherwise you'll never be able to log in to the system. You'll need to install the database in phpMyAdmin (or whatever you are using) and then alter the settings in application/config/database.php to get it working. The settings you will most likely need to change are:

$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';

User setup

No users are included in the database as standard, you will need to create an admin user which at the moment is a slightly manual process. Generate a password by including the code

echo sha1('password' . $this->config->item('encryption_key'));

somewhere in your code. Use phpMyAdmin to insert a row into the administrators table, you can use whatever you like as your username (I'd suggest 'admin' or something similar) and then use the hash created by the code above as the password.

  • Autoload
  • Form Validation

Extensions

  • MY_Model
  • MY_Form_validation
  • Extra JS
  • Extra CSS

About

A base admin system setup using CodeIgniter and Twitter bootstrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published