This is a "starting point" I use to start new projects quickly. It uses CodeIgniter 3 as a framework 54A2 with some additions by myself. It includes the following out of the bow.
- Starting controllers, models, and views in application/controllers, application/model, and application/views
- Starting database at database.sql
- Starting scripts at resources/script.js and resources/style.css
- Starting routes at application/config/routes.php
- Starting constants at application/config/constants.php
- Starting images at resources/img/
- CRON system in application/controllers/Cron.php by directly running through CLI application/cron.php
- Twitter Bootstrap at resources/bootstrap/
- jQuery at resources/jquery/
- uploads folder
- Full authentication system
- IP based login and register limits
- AB test system
- Full request database logging
- Abstracted database connection and auth token in auth.php
- Many reusable function in application/config/autoload.php
- A
.btn-action
css class.
auth.php
should be handled carefully, per the following steps.
- Update
auth.php
with the database name. - Run
git update-index --assume-unchanged auth.php
to ensure you can't commit authentication information to your repo. - Update
auth.php
with your real authentication information.