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 personal purposes correct away
  • Recipes that can assist you clear up your Codeigniter matters successfully and effectively
  • Each recipe comes with a whole code instance, and the place important, the version and examine documents are incorporated too

In Detail

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

CodeIgniter 2 Cookbook offers you easy access to sensible recipes and precious code snippets that you would be able to upload at once into your CodeIgniter software to get the task performed. It comprises over eighty ready-to-use recipes for you to fast consult with inside of your CodeIgniter program or project.

This booklet is the whole advisor to making absolutely functioning personal home page internet functions, packed with easy-to-follow recipes that may show you how to in any point of constructing with CodeIgniter. CodeIgniter 2 Cookbook takes you from the fundamentals of CodeIgniter, via e-commerce positive aspects on your functions, and ends via supporting you make sure that your atmosphere is safe to your clients and search engine optimization pleasant to attract in customers.

Starting with install and setup, CodeIgniter 2 Cookbook presents speedy ideas to programming difficulties for you to at once comprise on your personal tasks. you may be relocating via databases, european Cookie legislation, caching, and every little thing else in-between with worthwhile, ready-to-go recipes. you are going to examine photo manipulation utilizing the picture Manipulation library, person administration (building an easy CRUD interface), switching languages at the fly in keeping with the consumer choice, caching content material to lessen server load, and masses more.

What you are going to examine from this book

  • Build basic but robust Hypertext Preprocessor and CodeIgniter applications
  • Create e-commerce positive factors so as to add for your application
  • Manipulate photos – crop, rotate, and upload watermarks
  • Secure your person environment
  • Provide a forgot password performance to users
  • Optimize your search engine optimization and seek capabilities
  • Manage cash circulation on your application
  • Work with the ecu Cookie legislation (confirming Cookies from the user)
  • Use database migrations to roll again alterations and develop to more moderen database versions

Approach

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

Who this e-book is written for

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

Show description

Read or Download CodeIgniter 2 Cookbook PDF

Best web programming books

Aptana RadRails: An IDE for Rails Development: A comprehensive guide to using RadRails to develop your Ruby on Rails projects in a professional and productive manner

The RadRails IDE seems to be good fleshed out. It offers many helpful aids to the Ruby on Rails programmer. The publication indicates quite a few examples and display captures.

Plus, there also are a few accelerators. Like code templates. this permits you to outline snippets of customary code. Then through a couple of keys, a snippet could be inserted at a place contained in the major code. although, come to consider it, you have to most likely minimise utilization of this selection. simply because if overused it could actually result in many code duplicates, which raises the dimensions of the final code, and makes upkeep tougher, if you want to make a similar switch to all cases of a given snippet.

RadRails additionally presents aid for a debugger. Making it effortless to invoke. this selection is easily worthy cautious examining.

HTML, XHTML & CSS For Dummies

I locate that HTML, XHTML & CSS for Dummies is of an analogous caliber (and quirkiness) because the different "for Dummies" books. this can be a nice table reference booklet for rookies or those who do not code web content usually. i'd suggest this e-book as a reference / aspect buy to precise internet coding tutorial books.

Elgg 1.8 Social Networking

Create, customise, and installation your own social networking web site with Elgg An up to date model of the first actual ebook on Elgg exact and easy-to-understand research on development your personal social networking web site with Elgg discover the titanic diversity of Elgg's social networking features together with groups, sharing, profiles and relationships discover ways to create plugins and issues with huge tutorials Written through funds Costello, a middle developer of the Elgg crew, with a foreword from Dave Tosh, Elgg co-founder.

Sinatra: Up and Running: Ruby for the Web, Simply

Benefit from Sinatra, the Ruby-based net program library and domain-specific language utilized by GitHub, LinkedIn, Engine backyard, and different admired businesses. With this concise e-book, you'll fast achieve operating wisdom of Sinatra and its minimalist method of construction either standalone and modular internet purposes.

Extra resources for CodeIgniter 2 Cookbook

Example text

If they do not match, we send redirect() to the login screen, but you could easily code any action, such as logging the event or displaying a message rather than a redirect. If the $hash and $row->user_hash values do match, then you could perform an action based on this confirmation; an example would be logging the user in. 42 Chapter 2 Forgot password? – resetting passwords with CodeIgniter Everyone forgets their password from time to time and it's likely that a user may wish to be reminded of their password.

50 3 Creating E-commerce Features In this chapter, we will cover: ff Amending configuration settings to run sessions in a database ff Creating a basic cart ff Adding and searching by product categories ff Saving the cart to the database Introduction The Cart class in CodeIgniter provides basic shopping cart functionality, such as adding items, amending the cart, displaying cart details, and removing items within the cart. In this chapter, we'll look at creating a simple shop using the CodeIgniter Cart class.

2. >

Whoops! > 3. $this->Signin_model>does_code_match($data['code'], $email)) { // Code doesn't match redirect ('signin/forgot_password'); } else {// Code does match $this->load->model('Register_model'); 46 Chapter 2 $hash = $this->encrypt->sha1($this->input>post('password1')); $data = array( 'user_hash' => $hash ); if ($this->Register_model->update_user( $data, $email)) { redirect ('signin'); } } } } 4. Then, amend /path/to/codeigniter/application/models/signin_model. php, adding the following code: public function update_user($data, $email) { $this->db->where('user_email', $email); $this->db->update('register', $data); } public function does_email_exist($email) { $this->db->where('user_email', $email); $this->db->from('register'); $num_res = $this->db->count_all_results(); if ($num_res == 1) { return TRUE; } else { return FALSE; } } public function does_code_match($code, $email) { $this->db->where('user_email', $email); $this->db->where('forgot_password', $code); $this->db->from('register'); $num_res = $this->db->count_all_results(); if ($num_res == 1) { return TRUE; } else { return FALSE; } } 47 User Management 5.

Download PDF sample

Rated 4.07 of 5 – based on 42 votes