PacktLib: CodeIgniter 1.7

CodeIgniter 1.7

Credits

About the Authors

About the Reviewer

Preface

Introduction to CodeIgniter

What can CodeIgniter do for you?

What CI doesn't do

Yes, but…what is CodeIgniter? What are frameworks?

Comparing CI to other open source solutions (CakePHP and Joomla!)

License

Summary

Setting up a CodeIgniter Site

Prerequisites

Installing CodeIgniter

Summary

Navigating Your Site

MVC: Model-View-Controller

Summary

Using CI to Simplify Databases

Configuration settings

Designing the database for our site

Active Record

Summary

Chapter appendix: MySQL query to set up the website's database

Simplifying HTML Pages and Forms

Writing a view

Long and short PHP syntax and other CodeIgniter style guidelines

Nesting views

Practical issues of site architecture

CI's form helper—entering data

My display model

CI's form validation class: Checking data easily

Summary

Simplifying Sessions and Security

Continuing with our practical site using CI

Security/Sessions: Using another CI library class

Isn't there anything already built?

Security

Summary

CodeIgniter and Objects

Object-oriented programming

Summary

Improving Our Application with Third-Party Code

Creating a helper

Creating a library

Summary

Using CI to Communicate

Using the FTP class to test remote files

Machines talking to machines again: XML-RPC

Talking to humans for a change—the email class

Twitter

Summary

How CI Helps to Provide Dynamic Information

The date helper—converting and localizing dates

Working with text—the text helper

Making HTML tables the easy way—the Table class

Caching pages

Summary

Using CI to Handle Files and Images

The file helper

The download helper

The file upload class and CI's image class

CI's image class

Easy file compression with CI's zip class

Summary

Moving Your Site to the WWW

Errors and error pages

So, should we update if a new version of CI comes out?

Summary

CRUD—or Putting It All Together

Building our CRUD controller, model, and views

Upgrading our CRUD

Summary

The Verdict on CI

Organizing the files of our site

Organizing the logic of our site

Centralized configuration

Code conventions

Database tools

Simpler and more powerful code

Adding security to our site

Making our site more scalable and our code more reusable

Documentation and community

Summarizing all that CI offers

Summary

Resources and Extensions

CI's user forums

Invoicing

Additional resources

Summary

Appendix

Appendix

Appendix

Appendix

Appendix