WILEY

KNOWLEDGE FOR GENERATIONS

WILEY - KNOWLEDGE FOR GENERATIONS

United States Change Location

cart.gif CART |  MY ACCOUNT |  CONTACT US |  HELP    
Wiley.com
Professional CodeIgniter (0470282452) cover image
Professional CodeIgniter
ISBN: 978-0-470-28245-8
Paperback
336 pages
July 2008
US $44.99 Add to Cart

This price is valid for United States. Change location to view local pricing and availability.

Other Available Formats: E-Book

  • Description
  • Table of Contents
  • Errata
  • Downloads

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
60 Error in Code
First code fragment:
$this->session->set_userdata('user_email'], $row->email);

should be:
$this->session->set_userdata('user_email', $row->email);
9/22/11
67 Error in Book Code
$Q = $this->db->getwhere(products,$options,1);

should be:
$Q = $this->db->getwhere('products',$options,1);

This code is correct in the downloaded version.
09/23/08
4 87 Error in Code
$home['mainf'] = $this->MProducts->getMainFeature();
$skip = $home['mainf']['id'];
$home['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = $this->load->view('home',$home,true);

should be:

$data['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = 'home';
$this->load->vars($data);
$this->load->view('template');
08/18/08
102 Error in Code
the search() function contains this group of code:

if ($this->input->post('term')){
$search['results'] = $this->MProducts->search($this->input->post
('term');
}else{
...

The use of $search['results'] is incorrect, as it should be $data['results'] instead, like this:

if ($this->input->post('term')){
$data['results'] = $this->MProducts->search($this->input->post('term');
}else{
...

The code is correct in the downloadable zip archive.
08/18/08
110 Error in Code
In function updateCart:

$prevname = $cart[$productid][?price?];

should be

$prevprice = $cart[$productid][?price?]
06/02/2010
111 Error in Code
In the following code:

function cart($productid){
if ($productid > 0){
$fullproduct = $this->MProducts->getProduct($productid);
$this->MOrders->updateCart($productid,$fullproduct);
redirect(‘welcome/product/’.$productid, ‘refresh’);
}else{
$data[‘title’] = “Claudia’s Kids | Shopping Cart”;
if (count($_SESSION[‘cart’]) == true){
$data[‘main’] = ‘’;
$nav[‘navlist’] = $this->MCats->getCategoriesNav();
$this->load->vars($data);
$this->load->view(‘template’);



$nav[‘navlist’] = $this->MCats->getCategoriesNav();

Should be

$data[‘navlist’] = $this->MCats->getCategoriesNav();
6/10/09
Share This    Printer-ready version