CodeIgniter for Rapid PHP Application Development

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

CodeIgniter for Rapid PHP Application Development

Starting
David Upton

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

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 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 139781847191748
Paperback260 pages

About This Book

  • 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

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

 

 

Table of Contents

Chapter 1: Introduction to CodeIgniter
What can CodeIgniter Do for You?
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 2: Two Minutes' Work: Setting up a CodeIgniter Site
Prerequisites
Installing CodeIgniter
Exploring the File Structure
The Configuration File
Does it Work?
Summary
Chapter 3: Navigating Your Site
MVC—Just Another Acronym?
The Structure of a CI Site: Controllers and Views
CodeIgniter Syntax Rules
Types of Files or Classes on a CI Site
What are All Those Folders For?
Designing a Better View
Designing a Better Controller
How CI Classes Pass Information and Control to Each Other
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 '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
My 'Display' Model
CI's Validation Class: Checking Data Easily
Summary
Chapter 6: Simplifying Sessions and Security
Starting to Design a Practical Site with CI
Moving Around the Site
Security/Sessions: Using Another CI Library Class
Security
Summary
Chapter 7: CodeIgniter and Objects
Object-Oriented Programming
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
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
Talking to Humans for a Change: the Email Class
Summary
Chapter 10: How CI Helps to Provide Dynamic Information
The Date Helper: Converting and Localizing Dates
Working with Text: the Text Helper and Inflector Helper
Going International: the Language Class
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
CI's Image Class
Easy File Compression with the CI Zip Class
Summary
Chapter 12: Production Versions, Updates, and Big Decisions
Connections: Check the Config Files
Look Out for PHP 4/5 and Operating System Differences
Coping with Change in New CI Versions
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
Summary
Chapter 14: The Verdict on CI
Some Code: the 'do_test' Model
A Balance Sheet
Problems with CI
Summary
Chapter 15: Resources and Extensions
CI's User Forums
Video Tutorials
Resources for Other Programmes, e.g. Xampplite, MySQL, PHP
Summary

What You Will Learn

  • 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

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.

Authors

Table of Contents

Chapter 1: Introduction to CodeIgniter
What can CodeIgniter Do for You?
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 2: Two Minutes' Work: Setting up a CodeIgniter Site
Prerequisites
Installing CodeIgniter
Exploring the File Structure
The Configuration File
Does it Work?
Summary
Chapter 3: Navigating Your Site
MVC—Just Another Acronym?
The Structure of a CI Site: Controllers and Views
CodeIgniter Syntax Rules
Types of Files or Classes on a CI Site
What are All Those Folders For?
Designing a Better View
Designing a Better Controller
How CI Classes Pass Information and Control to Each Other
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 '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
My 'Display' Model
CI's Validation Class: Checking Data Easily
Summary
Chapter 6: Simplifying Sessions and Security
Starting to Design a Practical Site with CI
Moving Around the Site
Security/Sessions: Using Another CI Library Class
Security
Summary
Chapter 7: CodeIgniter and Objects
Object-Oriented Programming
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
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
Talking to Humans for a Change: the Email Class
Summary
Chapter 10: How CI Helps to Provide Dynamic Information
The Date Helper: Converting and Localizing Dates
Working with Text: the Text Helper and Inflector Helper
Going International: the Language Class
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
CI's Image Class
Easy File Compression with the CI Zip Class
Summary
Chapter 12: Production Versions, Updates, and Big Decisions
Connections: Check the Config Files
Look Out for PHP 4/5 and Operating System Differences
Coping with Change in New CI Versions
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
Summary
Chapter 14: The Verdict on CI
Some Code: the 'do_test' Model
A Balance Sheet
Problems with CI
Summary
Chapter 15: Resources and Extensions
CI's User Forums
Video Tutorials
Resources for Other Programmes, e.g. Xampplite, MySQL, PHP
Summary

Book Details

ISBN 139781847191748
Paperback260 pages
Read More