Professional CodeIgniter
Chapter 4: Creating the Main Web Site 98 Displaying Product Details In just a very short amount of time (less than a few hours, ...
Chapter 4: Creating the Main Web Site 99 Updating the MProducts Model Before you work with the controller, you ’ ll need to crea ...
Chapter 4: Creating the Main Web Site 100 First, use the third URI segment (which represents a product ID) to extract informatio ...
Chapter 4: Creating the Main Web Site 101 Leaving out the colors and sizes is intentional at this point. There wasn ’ t much dis ...
Chapter 4: Creating the Main Web Site 102 $this- > db- > where(‘status’,’active’); $this- > db- > limit(50); $Q = $t ...
Chapter 4: Creating the Main Web Site 103 < div id=’pleft’ > < h2 > Search Results < /h2 > < ?php if (count ...
Chapter 4: Creating the Main Web Site 104 What about the Shopping Cart? You ’ ve created a great deal of functionality in just a ...
Chapter 4: Creating the Main Web Site 105 Conclusion In this chapter, you built the vast majority of a working web site in just ...
...
Building a Shopping Cart In Chapter 4 , you learned how to use CodeIgniter ’ s MVC framework to create a basic eCommerce site, w ...
Chapter 5: Building a Shopping Cart 108 You ’ re going to combine the two approaches. Your more sensitive data are going to go i ...
Chapter 5: Building a Shopping Cart xi 109 There ’ s a lot of functionality to build, but the job can be broken down into major ...
Adding Products to a Shopping Cart 110 Shopping Cart, but displaying all products in the cart as well. All you have to do is che ...
Chapter 5: Building a Shopping Cart 111 }else{ $cart[$productid] = array( ‘name’ = > $fullproduct[‘name’], ‘price’ = > $fu ...
Chapter 5: Building a Shopping Cart 112 }else{ redirect(‘welcome/index’,’refresh’); } } } The next thing you have to do is adjus ...
Chapter 5: Building a Shopping Cart 113 Adding the View Cart Link to the Navigation The second part of the Shopping Cart is very ...
Chapter 5: Building a Shopping Cart 114 < ?php echo form_open(“welcome/search”); $data = array( “name” = > “term”, “id” = ...
Chapter 5: Building a Shopping Cart 115 Notice that in the code below, the $TOTALPRICE variable is taken from the totalprice ses ...
Chapter 5: Building a Shopping Cart 116 You may be looking at the code and wondering how all of this is going to work. After all ...
Chapter 5: Building a Shopping Cart 117 Updating the template and shoppingcart Views Once you ’ ve uploaded all the necessary fi ...
«
2
3
4
5
6
7
8
9
10
11
»
Free download pdf