CodeIgniter 1.7

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

CodeIgniter 1.7

David Upton, Jose Argudo Blanco

Improve your PHP coding productivity with the free compact open-source MVC CodeIgniter framework!
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781847199485
Paperback300 pages

Book Description

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.

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

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

Read More Reviews

Recommended for You

Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
jQuery UI 1.7: The User Interface Library for jQuery  Book Cover
jQuery UI 1.7: The User Interface Library for jQuery
$ 26.99
$ 18.90
Linux Shell Scripting Cookbook, Second Edition Book Cover
Linux Shell Scripting Cookbook, Second Edition
$ 26.99
$ 5.40
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
CentOS 6 Linux Server Cookbook Book Cover
CentOS 6 Linux Server Cookbook
$ 29.99
$ 21.00