Download CodeIgniter 2 Cookbook by Rob Foster PDF

By Rob Foster

Over eighty recipes that will help you create CodeIgniter powered functions and resolve universal coding problems


  • Customizable code that may be utilized in your individual functions correct away
  • Recipes to help you clear up your Codeigniter concerns successfully and effectively
  • Each recipe comes with a whole code instance, and the place beneficial, the version and think about documents are incorporated too

In Detail

As a developer, there are going to be occasions whilst you’ll want a fast and simple approach to a coding challenge. CodeIgniter is a robust open resource personal home page framework which lets you construct basic but robust full-feature net applications.

CodeIgniter 2 Cookbook provide you with easy accessibility to functional recipes and helpful code snippets which you could upload without delay into your CodeIgniter software to get the task performed. It includes over eighty ready-to-use recipes that you should speedy discuss with inside of your CodeIgniter software or project.

This ebook is all the advisor to making absolutely functioning personal home page net purposes, filled 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 gains on your functions, and ends by way of assisting you make sure that your setting is safe in your clients and website positioning pleasant to attract in customers.

Starting with deploy and setup, CodeIgniter 2 Cookbook offers fast strategies to programming difficulties that you should at once comprise on your personal tasks. you may be relocating via databases, european Cookie legislations, caching, and every thing else in-between with valuable, ready-to-go recipes. you'll examine photograph manipulation utilizing the picture Manipulation library, consumer administration (building an easy CRUD interface), switching languages at the fly in accordance with the consumer choice, caching content material to minimize server load, and lots more and plenty more.

What you are going to examine from this book

  • Build basic but strong personal home page and CodeIgniter applications
  • Create e-commerce gains so as to add on your application
  • Manipulate pictures – crop, rotate, and upload watermarks
  • Secure your person environment
  • Provide a forgot password performance to users
  • Optimize your search engine marketing and seek capabilities
  • Manage cash move on your application
  • Work with the european Cookie legislation (confirming Cookies from the user)
  • Use database migrations to roll again adjustments and enhance to more recent database versions


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

Who this booklet is written for

CodeIgniter 2 Cookbook is for intermediate to complex personal home page builders who are looking to commence utilizing the strong CodeIgniter framework to create internet purposes. Familiarity with CodeIgniter isn’t crucial, however it should be invaluable when you've got been brought to the framework before.

Show description

Read Online or Download CodeIgniter 2 Cookbook PDF

Similar web programming books

Learning Laravel 4 Application Development

Increase real-world net functions in Laravel four utilizing its refi ned and expressive syntax evaluate construct real-world net purposes utilizing the Laravel four framework find out how to configure, optimize and install Laravel four functions choked with illustrations besides plenty of suggestions and tips to assist you study extra approximately essentially the most fascinating Hypertext Preprocessor frameworks round intimately Laravel four is a fresh and fashionable framework for personal home page internet improvement.

Yii Project Blueprints

From notion to construction, easy methods to advance real-world functions with the Yii framework approximately This BookDevelop real-world internet purposes via easy-to-follow, step by step processesCreate 8 initiatives from starting to finish that can assist you discover the entire energy of YiiBuild a quick, user-based, database-driven content material administration approach with a dashboard and RESTful APIWho This booklet Is ForThis ebook is for intermediate-to-advanced point Yii builders who are looking to grasp the Yii framework and strengthen real-world purposes.

Mastering magento theme design

Create responsive issues utilizing Bootstrap, the main typical frontend frameworkAbout This booklet Create a complicated responsive Magento subject in keeping with the Bootstrap three framework Configure your customized topic with the Magento Admin Panel Create your subject from scratch utilizing functional stay coding examples Who This publication Is ForThis e-book is superb for builders and internet designers who're seeking to get a great starting place in how one can create customized, responsive, and complex Magento topics.

Scrum: Novice to Ninja: Methods for Agile, Powerful Development

Why for those who use Scrum on your internet tasks? easily placed, it will permit your group to get extra performed in much less time. Scrum is the most well-liked agile undertaking administration method utilized in net tasks this day. whereas so much Scrum books are usually long textbooks that hide each element of Scrum for every type of enterprises, this hugely sensible publication concentrates exclusively on how most sensible to use Scrum in internet and cellular improvement tasks.

Extra resources for CodeIgniter 2 Cookbook

Sample text

We're comparing the hash we generated from the user-supplied password against user_hash in the record we pulled from the register table. If the two hashes do not match, then the user must not have supplied the correct password, so we send them back to the signin form and wait for another attempt. In this case, it is a brief message, indicating that they are successfully logged in. However, in your application, this would be some sort of password protected member area, perhaps a dashboard. Generating passwords with CodeIgniter – the bare bones Okay, this is just the bare bones process.

Defined('BASEPATH')) exit('No direct script access allowed'); class Register extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper('form'); $this->load->helper('url'); $this->load->helper('security'); $this->load->model('Register_model'); $this->load->library('encrypt'); $this->load->database(); } public function index() { redirect('register/register_user'); } public function register_user() { // Load support assets $this->load->library('form_validation'); $this->form_validation->set_error_delimiters( '', '
'); // Set validation rules $this->form_validation->set_rules('first_name', 'First Name', 'required|min_length[1]|max_length[125]'); $this->form_validation->set_rules('last_name', 'Last Name', 'required|min_length[1]|max_length[125]'); $this->form_validation->set_rules('email', 'Email', 'required|min_length[1]|max_length[255]| valid_email'); $this->form_validation->set_rules('password1', 33 User Management 'Password', 'required|min_length[5]| max_length[15]'); $this->form_validation->set_rules('password2', 'Confirmation Password', 'required|min_length[5]| max_length[15]|matches[password1]'); // Begin validation if ($this->form_validation->run() == FALSE) { // First load, or problem with form $data['page_title'] = "Register"; $this->load->view('register/register',$data); } else { // Create hash from user password $hash = $this->encrypt->sha1( $this->input->post('password1')); $data = array( 'user_first_name' => $this->input->post('first_name'), 'user_last_name' => $this->input->post('last_name'), 'user_email' => $this->input->post('email'), 'user_hash' => $hash ); if ($this->Register_model>register_user($data)) { redirect('signin'); } else { redirect('register'); } } } } 2.

Generate a hash with a key other than that in $config['encryption_key'] as follows: // Call Encrypt library $this->load->library('encrypt'); $key = "This-is-the-key"; $hash = $this->encrypt->sha1($text_to_be_hashed, $key); In a production environment, replace the $key value (This-is-the-key) with a realistic value. 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...

Download PDF sample

Rated 4.40 of 5 – based on 25 votes