CodeIgniter 1.7

Improve your PHP coding productivity with the free compact open-source MVC CodeIgniter framework!

CodeIgniter 1.7

Starting
David Upton, Jose Argudo Blanco

Improve your PHP coding productivity with the free compact open-source MVC CodeIgniter framework!
$10.00
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781847199485
Paperback300 pages

About This Book

  • Clear, structured tutorial on working with CodeIgniter for rapid PHP application development
  • Careful explanation of the basic concepts of CodeIgniter and its MVC architecture
  • Use CodeIgniter with databases, HTML forms, files, images, sessions, and email
  • Full of ideas and examples with instructions making it ideal for beginners to CodeIgniter

Who This Book Is For

This book is for developers who are new to CodeIgniter. Basic skills in PHP and MySQL are required, but only rudimentary object-oriented knowledge is needed.

If you're looking for a better way to develop PHP applications, or want to find out more about the CodeIgniter framework as a viable option for one of your own projects, this book will help you.

Table of Contents

Chapter 1: 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
Chapter 2: Setting up a CodeIgniter Site
Prerequisites
Installing CodeIgniter
Summary
Chapter 3: Navigating Your Site
MVC: Model-View-Controller
Summary
Chapter 4: 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
Chapter 5: 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
Chapter 6: 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
Chapter 7: CodeIgniter and Objects
Object-oriented programming
Summary
Chapter 8: Improving Our Application with Third-Party Code
Creating a helper
Creating a library
Summary
Chapter 9: 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
Chapter 10: 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
Chapter 11: 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
Chapter 12: Moving Your Site to the WWW
Errors and error pages
So, should we update if a new version of CI comes out?
Summary
Chapter 13: CRUD—or Putting It All Together
Building our CRUD controller, model, and views
Upgrading our CRUD
Summary
Chapter 14: 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
Chapter 15: Resources and Extensions
CI's user forums
Invoicing
Additional resources
Summary

What You Will Learn

  • Download, install, and configure a CodeIgniter site and learn how to use mod_rewrite to generate better URLs
  • Organize a dynamic web site using the Model-View-Controller (MVC) pattern
  • Simplify your database access by integrating databases such as MySQL
  • Make your site more robust and professional by using CI's built-in classes
  • Understand the structure of a CI site and its object-oriented aspects
  • Reduce the code necessary to create a form using form helper – one of the fine features of CodeIgniter
  • Take any library or code, from your previous work, third-party code, etc. and put it to use inside CodeIgniter
  • Generate Create, Update, Delete, and Read (C.R.U.D) entries on each database table
  • Create multi-language sites, handle files, images, sessions, and send email easily with the help of CI
  • Work with files easily – upload them, download them, and put them into a Zip file
  • Test your code with error handling, unit testing, benchmarking, and profiling with the help of CI
  • Build a dynamic web site quickly and easily using CodeIgniter's prepared code

In Detail

CodeIgniter (CI) is a powerful open-source PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. CodeIgniter is an MVC framework, similar in some ways to the Rails framework for Ruby, and is designed to enable, not overwhelm.

This book explains how to work with CodeIgniter in a clear logical way. It is not a detailed guide to the syntax of CodeIgniter, but makes an ideal complement to the existing online CodeIgniter user guide, helping you grasp the bigger picture and bringing together many ideas to get your application development started as smoothly as possible.

This book will start you from the basics, installing CodeIgniter, understanding its structure and the MVC pattern. You will also learn how to use some of the most important CodeIgniter libraries and helpers, upload it to a shared server, and take care of the most common problems. If you are new to CodeIgniter, this book will guide you from bottom to top. If you are an experienced developer or already know about CodeIgniter, here you will find ideas and code examples to compare to your own.

Authors

Table of Contents

Chapter 1: 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
Chapter 2: Setting up a CodeIgniter Site
Prerequisites
Installing CodeIgniter
Summary
Chapter 3: Navigating Your Site
MVC: Model-View-Controller
Summary
Chapter 4: 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
Chapter 5: 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
Chapter 6: 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
Chapter 7: CodeIgniter and Objects
Object-oriented programming
Summary
Chapter 8: Improving Our Application with Third-Party Code
Creating a helper
Creating a library
Summary
Chapter 9: 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
Chapter 10: 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
Chapter 11: 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
Chapter 12: Moving Your Site to the WWW
Errors and error pages
So, should we update if a new version of CI comes out?
Summary
Chapter 13: CRUD—or Putting It All Together
Building our CRUD controller, model, and views
Upgrading our CRUD
Summary
Chapter 14: 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
Chapter 15: Resources and Extensions
CI's user forums
Invoicing
Additional resources
Summary

Book Details

ISBN 139781847199485
Paperback300 pages
Read More