CodeIgniter Project Template

Download

CodeIgniter Project Template

What is this?

This is a basic CodeIgniter Project Template that I use every time I need to start a new project. It has all of the basic features I usually need when building apps with CodeIgniter such as User Signup and Authentication using Ion Auth, Templates using Phil Sturgeon‘s CodeIgniter Template and HMVC using wiredesignz Modular Extensions – HMVC.

Why should I use this?

If you build apps with CodeIgniter and you often find yourself in need of authenticating users, organize your application logic into modules or tired of loading view files from within view files, then I think you will like this template.

How do I use this?

  1. Download the latest version
  2. Create a new database, user and password and import the sql/project_database.sql file into the new database
  3. Edit application/config/database.php and update the database name, user and password
  4. (Optional) Rename htaccess.txt to .htaccess
  5. Edit application/config/config.php and make sure to update the following settings: base_url, index_page (you can remove index.php if you’re using a .htaccess file), encryption_key, sess_cookie_name, csrf_token_name and csrf_cookie_name
  6. The app should be up and running by now, you can login using email admin@admin.com with password “password” (without quotes)
  7. (Optional) You will find the original Ion Auth files in controllers/auth.php and views/auth so you can extend and/or customize them as you see fit
  8. New controllers on your app should inherit from App_Controller

Ok, but there are things I don’t like in here, how can I change them?

  • You can use config/app.php to define configuration that is used everywhere
  • Validation Rules are set in config/form_validation.php, you can either delete or add more here
  • The App_Form_Validation.php file has custom validations already in place, you can either delete or add new ones there
  • The App_Controller.php file is a good place to start if you want to change how this template works

What will I find in here?

Copyright and license

Copyright (C) 2013 Ever Daniel Barreto Rojas.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

(Visited 15 times, 1 visits today)

Comments

comments

Leave a Reply