CodeIgniter for Rapid PHP Application Development

David Upton

There is a newer version of this book available - CodeIgniter 1.7 Professional Development
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
$11.54 save 44%!
Print book: $34.99
$31.49 save 10%!
Print + eBook bundle: $55.98
Includes free access to the book on PacktLib
$34.64 save 38%!
Free Shipping! UK, US, Europe and selected countries in Asia.
This book can also be purchased from:
Overview
Table of Contents
The Author
Reviews
Downloads
  • Clear, structured tutorial on working with CodeIgniter
  • Careful explanation of the basic concepts of CodeIgniter and its MVC architecture
  • Using CodeIgniter with databases, HTML forms, files, images, sessions, and email
  • Building a dynamic website quickly and easily using CodeIgniter's prepared code

Book Details

Language : English
Paperback : 260 pages [ 235mm x 191mm ]
Release Date : July 2007
ISBN : 1847191746
ISBN 13 : 978-1-847191-74-8
Author(s) : David Upton
Topics and Technologies : All Books, Open Source, PHP


Table of Contents

Preface
Chapter 1: Introduction to CodeIgniter
Chapter 2: Two Minutes' Work: Setting up a CodeIgniter Site
Chapter 3: Navigating Your Site
Chapter 4: Using CI to Simplify Databases
Chapter 5: Simplifying HTML Pages and Forms
Chapter 6: Simplifying Sessions and Security
Chapter 7: CodeIgniter and Objects
Chapter 8: Using CI to Test Code
Chapter 9: Using CI to Communicate
Chapter 10: How CI Helps to Provide Dynamic Information
Chapter 11: Using CI to Handle Files and Images
Chapter 12: Production Versions, Updates, and Big Decisions
Chapter 13: Instant CRUD—or Putting it All Together
Chapter 14: The Verdict on CI
Chapter 15: Resources and Extensions
Index
  • Chapter 1: Introduction to CodeIgniter
    • What can CodeIgniter Do for You?
      • Save Time
      • Make Your Site More Robust
        • Keep Your Links Up-To-Date Automatically
        • Save Database Crashes: 'prep' Your Data Entry Forms
      • Make Your Code Bolder
        • Send Email Attachments without Hassles
        • Save Bandwidth by Zipping Files That Users Need to Download
    • Yes, But…What is CodeIgniter? What are Frameworks?
    • And Who is That Man?
    • The 'Open Source' Business Model
    • What CI Doesn't Do
    • License
    • Summary
  • Chapter 3: Navigating Your Site
    • MVC—Just Another Acronym?
    • The Structure of a CI Site: Controllers and Views
      • The Welcome Controller
      • Working with Views
      • The Default Controller
    • CodeIgniter Syntax Rules
      • Controller
      • View
    • Types of Files or Classes on a CI Site
    • What are All Those Folders For?
    • Designing a Better View
    • Designing a Better Controller
      • Getting Parameters to a Function
      • Passing Data to a View
    • How CI Classes Pass Information and Control to Each Other
      • Calling Views
      • Calling Functions Directly
      • Interacting with Controllers
      • It's Just Like an Egg-Cup
      • An Example of a CI Helper: the URL Helper
      • A Simple Library Example: Creating a Menu
    • Summary
  • Chapter 4: Using CI to Simplify Databases
    • Configuration Settings
    • Designing the Database for Our Site
    • Active Record
      • Advantages of Using the Active Record Class
        • Saving Time
        • Automatic Functionality
      • Read Queries
      • Displaying Query Results
      • Create and Update Queries
      • Delete Queries
      • Mixing Active Record and 'Classic' Styles
    • Summary
    • Chapter Appendix: MYSQL Query to Set Up 'websites' Database
  • Chapter 5: Simplifying HTML Pages and Forms
    • Writing a View
    • Long and Short PHP Syntax
    • Nesting Views
    • Practical Issues of Site Architecture
    • CI's Form Helper: Entering Data
      • Form Helper Advantage One: Clarity
      • Form Helper Advantage Two: Automation
    • My 'Display' Model
    • CI's Validation Class: Checking Data Easily
      • Set Up Validation
      • Set Up the Controller
      • Set Up the Forms
    • Summary
  • Chapter 7: CodeIgniter and Objects
    • Object-Oriented Programming
      • Working of the CI 'Super-Object'
      • Copying by Reference
    • Adding Your own Code to the CI 'Super-Object'
    • Problems with the CI 'Super-Object'
    • Summary
  • Chapter 8: Using CI to Test Code
    • Why Test, and What For?
    • CI's Error Handling Class
    • CI's Unit Test Class
      • When to Use Unit Tests
      • Example of a Unit Test
    • CI's Benchmarking Class
    • CI's Profiler Class
    • Testing with Mock Databases
    • Control and Timing
    • Summary
  • Chapter 9: Using CI to Communicate
    • Using the FTP Class to Test Remote Files
    • Machines Talking to Machines Again—XML-RPC
      • Getting the XML-RPC Server and Client in Touch with Each Other
      • Formatting XML-RPC Exchanges
      • Debugging
      • Issues with XML-RPC?
  • Talking to Humans for a Change: the Email Class
  • Summary
  • Chapter 12: Production Versions, Updates, and Big Decisions
    • Connections: Check the Config Files
      • URLs
      • Databases
      • Other config Files
    • Look Out for PHP 4/5 and Operating System Differences
      • Diagnostic Tools
    • Coping with Changes in New CI Versions
      • How to Load Models, and What to Call Them
      • How to Initialize Your Own 'library' Classes
    • So Should I Update If a New CI Version Comes Out?
    • How to Add On to CI's Basic Classes
    • Summary
  • Chapter 13: Instant CRUD—or Putting it All Together
    • The CRUD Model: Design Philosophy
    • The Standard Controller Format
    • The Database Tables
    • The Heart of the Model: the Array
    • Function by Function: the CRUD Model
      • Showall
        • Reading the Data
        • Delete and Trydelete
      • Insert
      • Insert2
      • The Test Suite
    • Summary
  • Chapter 14: The Verdict on CI
    • Some Code: the 'do_test' Model
    • A Balance Sheet
      • Where CI Helped: Structure
      • Where CI Helped: Simplicity
      • Where CI Helped: Extra Functionality
    • Problems with CI
      • Completeness
      • Ease of Use
    • Summary
  • Chapter 15: Resources and Extensions
    • CI's User Forums
    • Video Tutorials
      • Available Plug-ins and Libraries
      • AJAX/Javascript
      • Authentication
      • External Sites
      • Comparisons: Which Charting Library to Use?
      • CRUD: the Final Frontier
    • Resources for Other Programmes, e.g. Xampplite, MySQL, PHP
    • Summary

David Upton

David Upton is a director of a specialized management consultancy company, based in London but working around the world. His clients include some of the world’s largest companies. He is increasingly interested in web-enabling his work, and seeking to turn ideas into robust professional applications by the simplest and easiest route. He has so far written applications for two major companies in the UK. His other interests include simulation, on which he writes a weblog which takes up far too much of his time, and thinking.

Sorry, we don't have any reviews for this title yet.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Find your book in our support section to find errata and to download code samples.

What you will learn from this book

  • Setting up the CI package on your web server
  • Understanding the Model-View-Controller (MVC) pattern for organizing a dynamic website
  • Understanding the structure of a CI site
  • Designing better views and controllers
  • Object-oriented aspects of CI
  • Integrating databases such as MySQL and simplifying your database access
  • Making your site more robust and professional by using CI's built-in classes
  • Creating and validating HTML forms with CI form helpers
  • Handling files, images, and sessions with CI
  • Sending email from CI
  • Using CI for testing your code with error handling, unit testing, benchmarking, and profiling
  • Getting an XML-RPC server and client working
  • Generating Create, Update, Delete, and Read (C.R.U.D) entries on each database table

Special Offers

PacktLib gives you access to this and 600+ other titles with an annual or monthly subscription.

Annual subscription:

$220.00 per annum

Monthly subscription:

$21.99 per month

Buy 2 eBooks
and Get 50% Off
+
Buy CodeIgniter for Rapid PHP Application Development with CodeIgniter 1.7 and get 50% off both the eBooks.
Just add both the eBooks to your shopping cart and enter 21pdcebk in the 'Enter Promotion Code' field. Click 'Add Promotion Code' and the discount will be applied.
View Best Selling eBook offers

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.

Improve your PHP coding productivity with this guide to the powerful and popular CodeIgniter framework.

Approach

This book steps you through the main features of CodeIgniter in a systematic way, explaining them clearly with illustrative code examples.

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 required. 

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.

Buy CodeIgniter for Rapid PHP Application Development

 

 

Are there no books available that are right for you at the moment? How about signing up to our newsletter to keep up to date?
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Sort A-Z