Wiley
Wiley.com
Print this page Share

Professional CodeIgniter

ISBN: 978-0-470-28245-8
336 pages
July 2008
Professional CodeIgniter (0470282452) cover image
If you’re a PHP developer, you can build Rails-like applications without learning a new language by following the hands-on tutorials in Professional CodeIgniter. In this book, find an overview of MVC and agile technologies, model and schema for products, helpers and libraries, Ajax and Scriptaculous, and explanations of the creation of applications like content management, blogs, and forums. Follow the step-by-step instructions for building and perfecting each application with CodeIgniter, and you will learn how to avoid everyday problems that other reference manuals don’t address.
See More
1. Welcome to the MVC World.

2. Agile Methodologies and Approaches.

3. A 10,000 Foot View of CodeIgniter.

4. Creating the Main Web Site.

5. Building a Shopping Cart.

6. Creating a Dashboard.

7. Improving the Dashboard.

8. Last-Minute Upgrades.

9. Security and Performance.

10. Conclusion.

See More
Download TitleSizeDownload
ReadMe 759 bytes Click to Download
Claudias Kids 13.43 KB Click to Download
Additional Code for Book 1.22 MB Click to Download
See More

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
See More
Buy Both and Save 25%!
+

Professional CodeIgniter (US $44.99)

-and- Beginning PhoneGap (US $34.99)

Total List Price: US $79.98
Discounted Price: US $59.98 (Save: US $20.00)

Buy Both
Cannot be combined with any other offers. Learn more.
Back to Top