CodeIgniter 2 cookbook over 80 recipes to help you create CodeIgniter-powered applications and solve common coding problems

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. CodeIgniter 2 Cookbook is for intermediate to advanced PHP developers who want to begin using the powerful CodeIgniter framework to create web applications....

Descripción completa

Detalles Bibliográficos
Autor principal: Foster, Robert Hill (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham : Packt Publishing 2013.
Edición:First edition
Colección:Community experience distilled
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628136906719
Tabla de Contenidos:
  • 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 bones Forgot 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 DataTable Using 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 user Chapter 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
  • Working with fuzzy dates in CodeIgniter