Chapter 5. Managing Data In and Out

In this chapter, we will cover:

  • Sending different data to multiple views
  • Validating user input
  • Preparing user input
  • Sticky form elements in CodeIgniter
  • Displaying errors next to form items
  • Reading files from the filesystem
  • Writing files to the filesystem
  • Creating and downloading ZIP files
  • Uploading files with CodeIgniter
  • Creating and using validation callbacks
  • Using the language class
  • Using the language class – switching a language on the fly
  • Confirming cookie acceptance from the user

Introduction

Managing data is an important subject covering not only the format of output data, database structure, and access methods but also security; any discussion of data and managing that data will obviously feature discussions of security ...

Get CodeIgniter 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.