Professional CodeIgniter
Chapter 3: A 10,000 - Foot View of CodeIgniter 58 You can even use the from() method to tell CodeIgniter which table to select f ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 59 $data = array( ‘name’ = > $_POST[‘name’] , ‘gender’ = > $_POST[‘gender’] ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 60 //$username and $password are passed in from another process //most likely a l ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 61 Download — The Download helper contains a single function that helps you downl ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 62 The Form Helper One of the most useful helpers in the CodeIgniter toolbox is t ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 63 Finally, you create a Submit button with form_submit() , and close a form with ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 64 Finally, the redirect() function allows you to create redirects in case of dif ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 65 ‘featured’ ENUM (‘true’, ‘false’) NOT NULL, ‘price’ FLOAT( 4, 2 ) NOT NULL, PR ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 66 The second function retrieves all categories from the database: function getAl ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 67 The Products Model Now it ’ s time to build your model for the products table: ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 68 Controllers For simplicity ’ s sake, you ’ re going to use the default control ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 69 function search(){ //use this for the search results } function about_us(){ // ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 70 Right before the Template view is loaded, there ’ s a call to $this - > loa ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 71 Again, the goal at the moment is not to understand every single aspect of how ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 72 This CSS file is undeniably simple (almost too simple!), but it will get you w ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 73 Creating the Product View The header file (header.php) is very simple, consist ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 74 Creating the Footer The footer file (footer.php) is even simpler than the head ...
Chapter 3: A 10,000 - Foot View of CodeIgniter 75 Conclusion The goal of this chapter is to walk you through the initial setup o ...
...
Creating the Main Web Site If you ’ ve made it this far, congratulations! You ’ ve set up CodeIgniter and created the bare - bon ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf