Professional CodeIgniter
Chapter 5: Building a Shopping Cart 138 anchor(‘welcome/cart/’.$list[‘id’],’add to cart’). “ < /p > < br style=’clear:b ...
Chapter 5: Building a Shopping Cart 139 While you ’ re in the CSS file, create two new classes, one called productlisting and th ...
Chapter 5: Building a Shopping Cart 140 Here ’ s the category view: < div id=’pleft’ > < ?php echo “ < h2 > ”.$ca ...
Chapter 5: Building a Shopping Cart 141 ? > < /div > < div id=’pright’ > < ?php foreach ($grouplist as $key = ...
Chapter 5: Building a Shopping Cart 142 Figure 5-12 It isn ’ t perfect, but you now have a skinned site that can be updated easi ...
Chapter 5: Building a Shopping Cart 143 Although CodeIgniter doesn ’ t come with any native Ajax support built-in, there are ple ...
...
Creating a Dashboard In Chapters 4 and 5 , you completed most of the work needed to build a functional (if rudimentary) eCommerc ...
Chapter 6: Creating a Dashboard Chapter 6: Creating a Dashboard 146 A way to easily assign a product to a category A way to assi ...
Chapter 6: Creating a Dashboard 147 Claudia seems to approve, and you ask her to send in her notes on the conversation you ’ ve ...
Chapter 6: Creating a Dashboard 148 The first step in working up a series of admin controllers is to organize your work into fol ...
Chapter 6: Creating a Dashboard 149 Here ’ s a basic controller stub for admin/dashboard: class Dashboard extends Controller { f ...
Chapter 6: Creating a Dashboard 150 CREATE TABLE ‘admins’ ( ‘id’ INT NOT NULL AUTO_INCREMENT , ‘username’ VARCHAR( 16 ) NOT NULL ...
Chapter 6: Creating a Dashboard 151 $this- > session- > set_flashdata(‘error’, Sorry, your username or password is incorre ...
Chapter 6: Creating a Dashboard 152 < div id=’pleft’ > < h2 > Please login to Access the Dashboard < /h2 > < ...
Chapter 6: Creating a Dashboard 153 If you were to attempt to log in, you ’ d only see a blank page. That ’ s because you still ...
Chapter 6: Creating a Dashboard 154 Here ’ s what the dashboard view looks like, from an HTML markup and PHP code standpoint: &l ...
Chapter 6: Creating a Dashboard 155 Creating the Login Mechanism The easiest thing to do right now is to create the admin_header ...
Chapter 6: Creating a Dashboard 156 h1 { font-size:1.2em; color:#999; } h2{ font-size:1em; color:#999; } h3{ font-size:.9em; col ...
Chapter 6: Creating a Dashboard 157 footer{ clear:both; padding-top:40px; font-size:9px; } .message{ border:1px solid #c98c21; b ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf