 |
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.
| Chapter | Page | Details | Date | Print Run |
|
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 |
|
|
Most Popular Open Source Forums
 |