Pro PHP- Patterns, Frameworks, Testing and More
235 ■ ■ ■ CHAPTER 16 Advanced Zend Framework In the previous chapter, you got up and running with a really basic Zend Framework ...
(^236) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK Listing 16-1. Configuration Using an Array in the Bootstrap File (in index.php) $con ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^237 The first argument points to the INI file, and the second argument indicates the sectio ...
(^238) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK Listing 16-4. Registering a Custom View with the View Renderer $view = new Zend_View ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^239 Next, you will need to determine why the exception was thrown. The error information is ...
(^240) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK example from the previous section with Zend_Log. First, place the code shown in List ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^241 //Get the log instance $log = Zend_Registry::get('log'); //Log an emergency message wit ...
(^242) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK So now that you’ve been warned, what can caching do for you? In short, everything. T ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^243 The easiest type of caching to do is full-page caching. It’s really simple, because you ...
(^244) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK The example in Listing 16-8 uses the page front-end and the file back-end to cache t ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^245 Replacing get with post, cookie, session, or even files will result in distinct caching ...
(^246) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK /* Initialize Zend_Filter_Input passing it the entire getPost() array */ $zfi = new ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^247 /* The next line stores the entire database row in the users Zend_Auth identity. Normal ...
(^248) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK Password: To access your login form, visit [http://example.com/index/login.](h ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^249 This produces a stdClass object, with a property for x. See Chapter 18 for coverage of ...
(^250) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK It is also important to realize that this approach does not replace the default rout ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^251 Listing 16-16. Routing for a Name $route2 = new Zend_Controller_Router_Route( '/product ...
(^252) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK public function TwoAction() { $session = new Zend_Session_Namespace('AUniqueNamespac ...
CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK^253 If you do not have a local mail server/mail relay and want to send mail via the Simple ...
(^254) CHAPTER 16 ■ ADVANCED ZEND FRAMEWORK is created and populated with Zend_Pdf_Page objects in a numerical index, with zero ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf