Limit search to available items
Book Cover
E-book
Author Foster, Rob

Title CodeIgniter 2 Cookbook
Published Packt Publishing, 2013

Copies

Description 1 online resource
Series Community experience distilled
Community experience distilled.
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: CodeIgniter Basics; Introduction; Downloading and installing CodeIgniter; Basic configuration options; Managing CodeIgniter on different environments; Managing database settings on different environments; Securing the system files; Removing index.php from the address bar using .htaccess; Installing and using Sparks; Chapter 2: User Management; Introduction; Viewing users; Creating users; Editing users; Deleting users; Generating passwords with CodeIgniter
Generating passwords with CodeIgniter -- the bare bonesForgot password? -- resetting passwords with CodeIgniter; Chapter 3: Creating E-commerce Features; Introduction; Amending configuration settings to run sessions in a database; Creating a basic cart; Adding and searching by product categories; Saving the cart to the database; Chapter 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 DataTableUsing an HTML table with DataTable and a database; Using word_limiter() for table output; Using word_censor() for cleaning input; Chapter 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 userChapter 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; Chapter 7: Creating a Secure User Environment; Introduction; Escaping user input; Preventing cross-site request forgery; Escaping data -- for a database; Using HTTPS with CodeIgniter; Chapter 8: Calendaring, Right Place, and Right Time; Introduction; Building a CodeIgniter Calendar helper with database results; Building an appointment manager with Calendar Library; Creating a helper to work with a person's date of birth
Summary 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. Approach Presented in a recipe-based format, you are led step-by-step through each aspect of CodeIgniter, allowing you to dip in and out as you choose. Who this book is for CodeIgniter 2 Cookbook is for intermediate to advanced PHP developers who want to begin using the powerful CodeIgniter framework to create web applications. Familiarity with CodeIgniter isn't essential, but it will be useful if you have been introduced to the framework before
Notes English
Print version record
SUBJECT CodeIgniter (Computer file) http://id.loc.gov/authorities/names/n2008037507
CodeIgniter (Computer file) blmlsh
CodeIgniter (Computer file) fast (OCoLC)fst01779054
Subject Web site development.
Web site development.
Form Electronic book
ISBN 1306203473
9781306203470
1782162305
9781782162308
9781782162315
1782162313