Book description
As a PHP developer, you may have wondered how much difference the Codeigniter framework might make when creating web applications. Now you can find out with a host of customizable recipes ready to insert into your own work.
- Customizable code that can be used in your own applications right away
- Recipes that will help you solve your Codeigniter issues efficiently and effectively
- Each recipe comes with a full code example, and where necessary, the Model and View files are included too
In Detail
As a developer, there are going to be times when you’ll need a quick and easy solution to a coding problem. CodeIgniter is a powerful open source PHP framework which allows you to build simple yet powerful full-feature web applications.
CodeIgniter 2 Cookbook will give you quick access to practical recipes and useful code snippets which you can add directly into your CodeIgniter application to get the job done. It contains over 80 ready-to-use recipes that you can quickly refer to within your CodeIgniter application or project.
This book is your complete guide to creating fully functioning PHP web applications, full of easy-to-follow recipes that will aid you in any aspect of developing with CodeIgniter. CodeIgniter 2 Cookbook takes you from the basics of CodeIgniter, through e-commerce features for your applications, and ends by helping you ensure that your environment is secure for your users and SEO friendly to draw in customers.
Starting with installation and setup, CodeIgniter 2 Cookbook provides quick solutions to programming problems that you can directly include in your own projects. You will be moving through databases, EU Cookie Law, caching, and everything else in-between with useful, ready-to-go recipes. You will look at image manipulation using the Image Manipulation library, user management (building a simple CRUD interface), switching languages on the fly according to the user preference, caching content to reduce server load, and much more.
Table of contents
-
CodeIgniter 2 Cookbook
- Table of Contents
- CodeIgniter 2 Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. CodeIgniter Basics
- Introduction
- Downloading and installing CodeIgniter
- Basic configuration options
- 2. User Management
- 3. Creating E-commerce Features
-
4. Email, HTML Table, and Text Libraries
- Introduction
- Sending plain e-mails with CodeIgniter Email
- Sending HTML e-mails with CodeIgniter Email
- Sending attachments with CodeIgniter Email
- Sending bulk e-mails with CodeIgniter Email
- Using an HTML table with DataTable
- Using an HTML table with DataTable and a database
- Using word_limiter() for table output
- Using word_censor() for cleaning input
-
5. Managing Data In and Out
- Introduction
- 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
- Confirming cookie acceptance from the user
-
6. Working with Databases
- Introduction
- Configuring CodeIgniter for databases
- Connecting to multiple databases
- Active Record – create (insert)
- Active Record – read (select)
- Active Record – update
- ActiveRecord – delete
- Looping through the database results
- Counting the number of returned results with num_rows()
- Counting the number of returned results with count_all_results()
- Query binding
- Finding the last insert id
- Finding the number of affected rows
- Finding the last database query
- Using CodeIgniter database migrations
- Moving to the current version with current()
- Rolling back/stepping forward with version()
- Generating an XML from a database result
- Generating a CSV from a database result
- 7. Creating a Secure User Environment
- 8. Calendaring, Right Place, and Right Time
-
9. Extending the Core
- Introduction
- Using CodeIgniter Sparks
- Creating PDFs with the DOMPDF Spark
- Creating Hooks in CodeIgniter
- Clearing dead sessions from the database
- Extending your controllers
- Uploading a file with FTP
- Creating libraries and giving them access to CodeIgniter resources
- Making your own configuration files and using the settings
- Using the language class – switching language on the go
- 10. Working with Images
- 11. SEO, Caching, and Logging
- Index
Product information
- Title: CodeIgniter 2 Cookbook
- Author(s):
- Release date: December 2013
- Publisher(s): Packt Publishing
- ISBN: 9781782162308
You might also like
book
CodeIgniter 1.7
Improve your PHP coding productivity with the free compact open-source MVC CodeIgniter framework! Clear, structured tutorial …
book
jQuery 2.0 Development Cookbook
As a web developer, you can benefit greatly from this book - whatever your skill level. …
book
PHP 7 Programming Cookbook
Over 80 recipes that will take your PHP 7 web development skills to the next level! …
book
Instant jQuery 2.0 Table Manipulation How-to
Enhance and add functionality with interactivity to your HTML tables with jQuery Learn something new in …