Professional CodeIgniter
Chapter 8: Last-Minute Upgrades 238 Creating the Model The model for the Pages table should be kept to a bare minimum at this po ...
Chapter 8: Last-Minute Upgrades 239 The getAllPages() function extracts all pages from the Pages database table. function getAll ...
Chapter 8: Last-Minute Upgrades 240 Finally, the deletePage() function lets you deactivate a record in the Pages database table. ...
Chapter 8: Last-Minute Upgrades 241 The create() function checks for POST data. If there is a page name in the POST data, then a ...
Chapter 8: Last-Minute Upgrades 242 Creating the Administrative Views For the page manager, you ’ ll need three views: A home pa ...
Chapter 8: Last-Minute Upgrades 243 Create, edit, delete and manage colors available to products. < /li > < br/ > &l ...
Chapter 8: Last-Minute Upgrades 244 Also, please note that as in the other home page views you ’ ve created, you ’ re also allow ...
Chapter 8: Last-Minute Upgrades 245 < h1 > < ?php echo $title;? > < /h1 > < ?php echo form_open(‘admin/page ...
Chapter 8: Last-Minute Upgrades 246 Creating the Edit Page View The admin_pages_edit view is identical to the admin_pages_create ...
Chapter 8: Last-Minute Upgrades 247 $data = array(‘name’= > ’description’,’id’= > ’desc’, ‘size’= > 40, ‘value’ = > ...
Chapter 8: Last-Minute Upgrades 248 Choosing and Integrating a WYSIWYG Editor There are dozens of great WYSIWYG editors out ther ...
Chapter 8: Last-Minute Upgrades 249 Updating the Welcome Controller Now that you ’ ve built the administrative tools to manage p ...
Chapter 8: Last-Minute Upgrades 250 Now that you have this in place, you have another interesting problem. On some of your other ...
Chapter 8: Last-Minute Upgrades 251 Here are the pieces you ’ ll need to make this work: Some kind of simple form that site visi ...
Chapter 8: Last-Minute Upgrades 252 function removeSubcriber($id){ $this- > db- > where(‘id’, $id); $this- > db- > d ...
Chapter 8: Last-Minute Upgrades 253 $this- > MSubscribers- > createSubscriber(); $this- > session- > set_flashdata(‘ ...
Chapter 8: Last-Minute Upgrades 254 foreach ($sidef as $key = > $list){ echo “ < div class=’productlisting’ > < img ...
Chapter 8: Last-Minute Upgrades 255 There will be a way to unsubscribe people from the list, both via e - mail and on the admin ...
Chapter 8: Last-Minute Upgrades 256 < h1 > < ?php echo $title;? > < /h1 > < p > < ?php echo anchor(“a ...
Chapter 8: Last-Minute Upgrades 257 And here ’ s the update in admin_header (in bold): < div id=’globalnav’ > < ul > ...
«
8
9
10
11
12
13
14
15
16
17
»
Free download pdf