Pro PHP- Patterns, Frameworks, Testing and More
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^255 //Create a new PDF and add a letter-sized page $pdf = new Zend_Pdf(); $pdf->pages[] ...
(^256) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK //Set calculation variables $dpi = 300; //The image DPI is important $pointsPerInch ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^257 After you have built your array of data, you can call the isSpam() method: if(! $akisme ...
(^258) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK Zend_PDF allows you to create PDFs. •Using Zend_Service, you can integrate with va ...
259 ■ ■ ■ CHAPTER 17 The Zend Framework Applied In the previous chapters, you’ve seen a glimpse of some of the Zend Framework co ...
(^260) CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED ./application/modules/admin/views ./application/modules/admin/views/scripts ./app ...
CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED^261 Once you have a library function, you need to add your library directory to the incl ...
(^262) CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED Figure 17-1. The Zend Framework application flow Creating Plug-ins As you may hav ...
CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED^263 Listing 17-4. A Stats Logging Plug-in (YourPrefix_Controller_Plugin_Statistics) clas ...
(^264) CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED The redirector helper doesn’t implement either of the events, but uses its helper ...
CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED^265 Implementing Access Control Now that you have a handle on plug-ins, helpers, and the ...
(^266) CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED Listing 17-9. ArticlesController View (/view/scripts./articles/index.phtml) This ...
CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED^267 //Overwrite the controller and action that the dispatch will use $request->setCon ...
(^268) CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED Listing 17-11. Bootstrapping Zend_Layout (in index.php) Zend_Layout::startMvc( ar ...
CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED^269 Listing 17-13. A Layout Script with an Included Conditional Placeholder <html> ...
(^270) CHAPTER 17 ■ THE ZEND FRAMEWORK APPLIED Just the Facts In this chapter, you learned about the Zend Framework’s internal o ...
■ ■ ■ PART 5 Web 2.0 McArthur_819-9.book Page 271 Friday, February 29, 2008 8:03 AM ...
McArthur_819-9.book Page 272 Friday, February 29, 2008 8:03 AM ...
273 ■ ■ ■ CHAPTER 18 Ajax and JSON Ajax, short for Asynchronous JavaScript and XML, is a combination of technologies, typically ...
(^274) CHAPTER 18 ■ AJAX AND JSON ■Note If you wish to learn more about the JSON encoding itself, see the excellent online manua ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf