Professional CodeIgniter
Introduction xviii Here ’ s what this book is not about: It ’ s not a book on visual design. You might openly guffaw at my creat ...
Introduction xix Two more notes: You really need to have a set of good editing tools (I use BBEdit or Dreamweaver, depending on ...
Introduction xx If you don ’ t spot “ your ” error on the Book Errata page, go to http://www.wrox.com/contact/techsupport .shtml ...
Welcome to the MVC World This book is about CodeIgniter and the world of Model - View - Controller (MVC) web development. Before ...
Chapter 1: Welcome to the MVC World 2 In fact, a newbie programmer ’ s first PHP page probably looks a lot like this one: < ? ...
Chapter 1: Welcome to the MVC World 3 Six months later, the programmer gets a call from the client, and the problems begin — not ...
Chapter 1: Welcome to the MVC World 4 }else{ $hp[‘title’] = “Welcome to our web site!”; $hp[‘css’] = “default.css”; $hp[‘bodycop ...
Chapter 1: Welcome to the MVC World 5 extend. Furthermore, MVC frameworks are usually pretty structured, allowing the developer ...
Chapter 1: Welcome to the MVC World 6 Because of MVC ’ s three - part separation, developers can create multiple views and contr ...
Chapter 1: Welcome to the MVC World 7 If they want to change the number of blog posts that get retrieved (or even the order in w ...
Chapter 1: Welcome to the MVC World 8 that knew how to render what you wanted to render. For example, if you wanted to draw a re ...
Chapter 1: Welcome to the MVC World 9 The next step in MVC (no pun intended) occurred with the arrival of the NeXT operating sys ...
Chapter 1: Welcome to the MVC World 10 Comparing PHP MVC Frameworks When you look at CodeIgniter, Symfony, and CakePHP, you ’ ll ...
Chapter 1: Welcome to the MVC World 11 Figure 1 - 4 illustrates a typical CakePHP model. Figure 1-4 Symfony ’ s approach allows ...
Chapter 1: Welcome to the MVC World 12 Strictly speaking, CodeIgniter doesn ’ t require models at all. Although this may seem a ...
Chapter 1: Welcome to the MVC World 13 In the following sections, you see how you ’ d go about doing that. The examples provided ...
Chapter 1: Welcome to the MVC World 14 The fetchHomePage() function is very simple, but it pays huge dividends to understand wha ...
Chapter 1: Welcome to the MVC World 15 As before, this controller is bare - bones, consisting of just an initialization function ...
Chapter 1: Welcome to the MVC World 16 } function index(){ $this- > load- > model(‘Page_model’,’’,TRUE); $data[‘content’] ...
Chapter 1: Welcome to the MVC World 17 Notice the use of the $content array whenever you access what you need. You may be wonder ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf