You are previewing CodeIgniter Web Application Blueprints.
O'Reilly logo
CodeIgniter Web Application Blueprints

Book Description

Develop full-featured dynamic web applications using the powerful CodeIgniter MVC framework

In Detail

Loosely based on the Model-View-Controller pattern, CodeIgniter is an open source framework for application development. It allows you to develop projects by providing a rich set of libraries for common tasks, including a simple interface and logical structure to access these libraries.

The book begins with creating a "base" application, which will be used to develop all the subsequent projects in this book. Taking you through the installation of CodeIgniter and Twitter Bootstrap, you will be introduced to some common helpers and libraries. The book will then take you through many projects, developed upon the base application. The projects include a discussion forum, a photo sharing website, and an e-commerce website. Towards the end, you will have eight projects that you can develop and amend.

This is an easy-to-follow guide consisting of a number of projects that enable you to develop full-featured applications at a fast pace.

What You Will Learn

  • Create a base application to form the building blocks to develop your own web applications

  • Develop a user authorization system to enable user access and permit the resetting of passwords

  • Build an application to upload photos along with their descriptions

  • Develop a URL shortener to create a new URL and save it to the database

  • Design a job board to create and list new jobs and also register users and agents

  • Construct an application to assign time against task, by adding filters and graphics to data

  • Expand an e-commerce website to provide online shopping facility to users

  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. CodeIgniter Web Application Blueprints
      1. Table of Contents
      2. CodeIgniter Web Application Blueprints
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Introduction and Shared Project Resources
        1. Common resources
          1. Twitter Bootstrap
          2. Headers and footers
        2. Downloading CodeIgniter
          1. CodeIgniter on newer versions of PHP
        3. Installing Twitter Bootstrap
        4. Removing index.php from the address bar
        5. Installing and using Sparks
        6. Creating a shared header and footer view
        7. Common language items
        8. Creating the MY_Controller file
        9. Autoloading common system resources
        10. Security considerations
          1. Moving the system folder
          2. Error messages
          3. Query binding
        11. Summary
      9. 2. A URL Shortener
        1. Design and wireframes
          1. File overview
        2. Creating the database
        3. Adjusting the routes.php file
        4. Creating the model
        5. Creating views
          1. Creating the view file–views/create/create.php
          2. Creating the view file–views/nav/top_nav.php
        6. Creating controllers
          1. Creating the controller file–controllers/create.php
          2. Creating the controller file–controllers/go.php
        7. Creating the language file
        8. Putting it all together
          1. Creating a shortened URL
          2. Retrieving a URL
        9. Summary
      10. 3. Discussion Forum
        1. Design and wireframes
          1. The View All Discussions page
          2. The View Discussion/Add Comment page
          3. The New Discussion page
          4. The admin Dashboard page
          5. File overview
        2. Creating the database
        3. Adjusting the config.php file
        4. Adjusting the routes.php file
        5. Creating the models
          1. Creating the model file – models/discussions_model.php
          2. Creating the model file – comments_model.php
          3. Creating the model file – admin_model.php
        6. Creating views
          1. Discussions
          2. Comments
          3. New discussion
          4. The top_nav file
          5. The login view
          6. The login_header file
          7. Dashboard
          8. The signin.css file
        7. Creating the controllers
          1. The discussions controller
          2. The comments controller
          3. The admin controller
        8. Creating the language file
        9. Putting it all together
          1. A user creates a discussion forum
          2. A user comments on a discussion forum
          3. A user dislikes a comment and flags it for moderation
          4. A moderator reviews comments awaiting moderation
        10. Summary
      11. 4. Creating a Photo-sharing Application
        1. Design and wireframes
          1. The create item
          2. The do_upload item
          3. The go item
          4. File overview
        2. Creating the database
        3. Adjusting the config.php and autoload.php files
        4. Adjusting the routes.php file
        5. Creating the model
        6. Creating the views
        7. Creating the controllers
        8. Creating the language file
        9. Putting it all together
        10. Summary
      12. 5. Creating a Newsletter Signup
        1. Introduction
        2. Design and wireframes
          1. The Home – index() and Signup – index() items
          2. Settings/Unsubscribe – settings()
          3. File overview
        3. Creating the database
        4. Adjusting the routes.php file
        5. Creating the model
        6. Creating the views
        7. Creating the controllers
        8. Creating the language file
        9. Putting it all together
          1. User subscribes
          2. User updates their settings
          3. User unsubscribes
        10. Summary
      13. 6. Creating an Authentication System
        1. Introduction
        2. Design and wireframes
          1. Me – editing details
          2. Viewing all users
          3. Creating users
          4. Editing the user details
          5. Deleting a user
          6. Sign in
          7. Register
          8. File overview
        3. Creating the database
        4. Adjusting the config.php file
        5. Adjusting the routes.php file
        6. Creating the models
        7. Creating the views
        8. Creating the controllers
        9. Creating the language file
        10. Putting it all together
          1. User registration
          2. Ensuring correct access
        11. Summary
      14. 7. Creating an E-Commerce Site
        1. Introduction
        2. Design and wireframes
          1. Home – index()
          2. Add to cart – add()
          3. Cart – display_cart()
          4. User Details – user_details()
          5. File overview
        3. Creating the database
        4. Adjusting the config.php file
        5. Adjusting the routes.php file
        6. Creating the model
        7. Creating the views
        8. Creating the controllers
        9. Creating the language file
        10. Putting it all together
          1. Filtering a search
          2. Adding to cart
          3. Altering the product quantity
        11. Summary
      15. 8. Creating a To-do List
        1. Introduction
        2. Design and wireframes
          1. View All/Create
          2. Delete
          3. File overview
        3. Creating the database
        4. Adjusting the config.php file
        5. Adjusting the routes.php file
        6. Creating the model
        7. Creating views
        8. Creating the controller
        9. Creating the language file
        10. Putting it all together
          1. User adds a task
          2. User changes the task status
        11. Summary
      16. 9. Creating a Job Board
        1. Introduction
        2. Design and wireframes
          1. Job/Search
          2. Detail/Apply
          3. Create
          4. File overview
        3. Creating the database
        4. Adjusting the config.php file
        5. Adjusting the routes.php file
        6. Creating the model
        7. Creating views
        8. Creating the controller
        9. Creating the language file
        10. Putting it all together
          1. User creates a job advert
          2. User looks at a job
          3. User searches for a job
          4. User applies for a job
        11. Summary
      17. Index