LEADER 04956nam 2200709 a 450 001 9910815025203321 005 20240516184804.0 010 $a1-283-30825-8 010 $a9786613308252 010 $a1-84951-549-2 035 $a(CKB)2550000000045893 035 $a(EBL)948535 035 $a(OCoLC)797917540 035 $a(SSID)ssj0000648286 035 $a(PQKBManifestationID)11456543 035 $a(PQKBTitleCode)TC0000648286 035 $a(PQKBWorkID)10597043 035 $a(PQKB)10458596 035 $a(WaSeSS)Ind00025138 035 $a(Au-PeEL)EBL948535 035 $a(CaPaEBR)ebr10496811 035 $a(CaONFJC)MIL330825 035 $a(PPN)227984552 035 $a(FR-PaCSA)88851636 035 $a(MiAaPQ)EBC948535 035 $a(EXLCZ)992550000000045893 100 $a20111003d2011 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aYii 1.1 application development cookbook $eover 80 recipes to help you master using the Yii PHP framework /$fAlexander Makarov ; [foreword by Qiang Xue] 205 $a1st ed. 210 $aBirmingham, U.K. $cPackt Pub. Open Source$d2011 215 $a1 online resource (392 p.) 300 $a"Quick answers to common problems"--Cover. 300 $aIncludes index. 311 $a1-84951-548-4 320 $aIncludes index. 327 $aCover; Copyright; Credits; Foreword; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Under the Hood; Introduction; Using getters and setters; Using Yii events; Using import and autoloading; Using exceptions; Configuring components; Configuring widget defaults; Using Yii core collections; Working with request; Chapter 2: Router, Controller, and Views; Introduction; Configuring URL rules; Generating URLs by path; Using regular expressions in URL rules; Creating URL rules for static pages; Providing your own URL rules at runtime 327 $aUsing base controllerUsing external actions; Displaying static pages with CViewAction; Using flash messages; Using controller context in a view; Reusing views with partials; Using clips; Using decorators; Defining multiple layouts; Paginating and sorting data; Chapter 3: AJAX and jQuery; Introduction; Loading a block through AJAX; Managing assets; Including resources into the page; Working with JSON; Passing configuration from PHP to JavaScript; Handling variable number of inputs; Chapter 4: Working with Forms; Introduction; Writing your own validators; Uploading files; Adding CAPTCHA 327 $aCustomizing CAPTCHACreating a custom input widget with CInputWidget; Chapter 5: Testing your Application; Introduction; Setting up the testing environment; Writing and running unit tests; Using fixtures; Testing the application with functional tests; Generating code coverage reports; Chapter 6: Database, Active Record, and Model Tricks; Introduction; Getting data from a database; Defining and using multiple DB connections; Using scopes to get models for different languages; Processing model fields with AR event-like methods; Applying markdown and HTML; Highlighting code with Yii 327 $aAutomating timestampsSetting an author automatically; Implementing single table inheritance; Using CDbCriteria; Chapter 7: Using Zii Components; Introduction; Using data providers; Using grids; Using lists; Creating custom grid columns; Chapter 8: Extending Yii; Introduction; Creating model behaviors; Creating components; Creating reusable controller actions; Creating reusable controllers; Creating a widget; Creating CLI commands; Creating filters; Creating modules; Creating a custom view renderer; Making extensions distribution-ready; Chapter 9: Error handling, Debugging, and Logging 327 $aIntroductionUsing different log routes; Analyzing the Yii error stack trace; Logging and using the context information; Implementing your own smart 404 handler; Chapter 10: Security; Introduction; Using controller filters; Using CHtml and CHtmlPurifier to prevent XSS; Preventing SQL injections; Preventing CSRF; Using RBAC; Chapter 11: Performance Tuning; Introduction; Following best practices; Speeding up sessions handling; Using cache dependencies and chains; Profiling an application with Yii; Chapter 12: Using External Code; Introduction; Using Zend Framework from Yii 327 $aCustomizing the Yii autoloader 330 $aOver 80 recipes to help you master using the Yii PHP framework 606 $aWeb 2.0 606 $aWeb site development 615 0$aWeb 2.0. 615 0$aWeb site development. 676 $a006.7 676 $a006.76 700 $aMakarov$b Aleksandr$01616762 701 $aXue$b Qiang$01616763 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910815025203321 996 $aYii 1.1 application development cookbook$93947654 997 $aUNINA