CodeIgniter 2 Cookbook by Rob Foster

By Rob Foster

Over eighty recipes that can assist you create CodeIgniter powered purposes and clear up universal coding problems

Overview

  • Customizable code that may be utilized in your individual functions correct away
  • Recipes to help you clear up your Codeigniter matters successfully and effectively
  • Each recipe comes with an entire code instance, and the place important, the version and examine documents are integrated too

In Detail

As a developer, there are going to be instances while you’ll want a quickly and straightforward approach to a coding challenge. CodeIgniter is a strong open resource personal home page framework which lets you construct easy but robust full-feature net applications.

CodeIgniter 2 Cookbook provide you with easy accessibility to functional recipes and worthwhile code snippets that you could upload at once into your CodeIgniter program to get the activity performed. It includes over eighty ready-to-use recipes for you to fast discuss with inside of your CodeIgniter program or project.

This publication is the complete consultant to making absolutely functioning personal home page internet purposes, packed with easy-to-follow recipes that might assist you to in any element of constructing with CodeIgniter. CodeIgniter 2 Cookbook takes you from the fundamentals of CodeIgniter, via e-commerce positive factors in your purposes, and ends via supporting you make sure that your surroundings is safe in your clients and search engine optimisation pleasant to attract in customers.

Starting with deploy and setup, CodeIgniter 2 Cookbook offers quickly recommendations to programming difficulties so you might at once contain on your personal initiatives. you may be relocating via databases, european Cookie legislation, caching, and every little thing else in-between with necessary, ready-to-go recipes. you are going to examine picture manipulation utilizing the picture Manipulation library, consumer administration (building an easy CRUD interface), switching languages at the fly in response to the consumer choice, caching content material to lessen server load, and lots more and plenty more.

What you'll study from this book

  • Build basic but robust personal home page and CodeIgniter applications
  • Create e-commerce good points so as to add for your application
  • Manipulate photographs – crop, rotate, and upload watermarks
  • Secure your consumer environment
  • Provide a forgot password performance to users
  • Optimize your search engine optimization and seek capabilities
  • Manage cash movement on your application
  • Work with the ecu Cookie legislations (confirming Cookies from the user)
  • Use database migrations to roll again adjustments and boost to more recent database versions

Approach

Presented in a recipe-based structure, you're led step by step via every one element of CodeIgniter, permitting you to dip out and in as you choose.

Who this publication is written for

CodeIgniter 2 Cookbook is for intermediate to complicated Hypertext Preprocessor builders who are looking to commence utilizing the robust CodeIgniter framework to create internet functions. Familiarity with CodeIgniter isn’t crucial, however it might be worthy in case you have been brought to the framework before.

Show description

Read or Download CodeIgniter 2 Cookbook PDF

Best web programming books

XML for ASP.NET developers

XML for ASP. internet builders first offers a pretty good starting place within the fundamentals of MSXML together with XML Syntax, XML Schemas, Xpath, Xlink, Xpointer, and different options essential to leverage the facility of XML. After the construction blocks of XML are completely lined, Dan courses readers via manipulating XML files utilizing the record item version (DOM) and XSL (Extensible Stylesheet Language) either at the customer and the server.

ActiveX programming unleashed

A advisor to net programming with ActiveX. The booklet covers ActiveX Controls, energetic scripts, ActiveX records, net Server API (ISAPI), low and high point interfaces for downloading facts from the net, ActiveX Server Framework and sceurity and optimization matters for ActiveX programmers

bbPress Complete

A complete advisor to bbPress with transparent and concise directions on increasing your WordPress web site with a group discussion board assessment A step by step consultant to making, handling, and becoming a group round your WordPress web site examine convenient tips from an skilled neighborhood supervisor to maintain your discussion board freed from trouble combine bbPress performance into WordPress with shortcodes intimately in spite of the increase of social media, boards stay a well-liked a part of the web.

D Web Development

Leverage the facility of D and the vibe. d framework to advance internet functions which are particularly fastAbout This BookUtilize the based vibe. d framework to construct internet purposes simply and relaxation backends with the D programming languageLearn approximately all parts of vibe. d to augment your net improvement with DA hands-on consultant to the vibe.

Extra resources for CodeIgniter 2 Cookbook

Sample text

Make it a long string of alphanumeric characters; the more random the better! = $row->user_hash) { // Didn't match so send back to login redirect('signin/login'); } else { // Did match so log them in if you wish } How it works... Generating a hash with the $config['encryption_key'] value: First, we load the encrypt library with $this->load->library('encrypt'), then we call the sha1 function in the encrypt library and pass to it the, $text_to_be_hashed variable. php file. $this->encrypt->sha1 ($text_to_be_hashed) will return a string that we'll store in the, $hash variable.

Php if (! defined('BASEPATH')) exit('No direct script access allowed'); class Users extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper('form'); $this->load->helper('url'); $this->load->helper('security'); $this->load->model('Users_model'); $this->load->database(); } public function index() { redirect('users/view_users'); } public function view_users() { $data['query'] = $this->Users_model>get_all_users(); $this->load->view('users/view_all_users', $data); } } 2.

Config['sess_use_ database] TRUE/FALSE Specifies whether or not to store sessions in the database; for this example, it should be set to TRUE. $config['sess_table_ name'] Alphanumeric The name of the table in the database that is used to store sessions. For this example, it should be set to sess_cart. Specifies the encryption key CodeIgniter should use when encrypting sessions. The value can be alphanumeric and you must decide on a string for its value. 2. There are some tables required to support this recipe, and also some dummy data.

Download PDF sample

Rated 4.61 of 5 – based on 18 votes