04956nam 2200709 a 450 991081502520332120240516184804.01-283-30825-897866133082521-84951-549-2(CKB)2550000000045893(EBL)948535(OCoLC)797917540(SSID)ssj0000648286(PQKBManifestationID)11456543(PQKBTitleCode)TC0000648286(PQKBWorkID)10597043(PQKB)10458596(WaSeSS)Ind00025138(Au-PeEL)EBL948535(CaPaEBR)ebr10496811(CaONFJC)MIL330825(PPN)227984552(FR-PaCSA)88851636(MiAaPQ)EBC948535(EXLCZ)99255000000004589320111003d2011 uy 0engur|n|---|||||txtccrYii 1.1 application development cookbook over 80 recipes to help you master using the Yii PHP framework /Alexander Makarov ; [foreword by Qiang Xue]1st ed.Birmingham, U.K. Packt Pub. Open Source20111 online resource (392 p.)"Quick answers to common problems"--Cover.Includes index.1-84951-548-4 Includes index.Cover; 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 runtimeUsing 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 CAPTCHACustomizing 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 YiiAutomating 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 LoggingIntroductionUsing 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 YiiCustomizing the Yii autoloaderOver 80 recipes to help you master using the Yii PHP frameworkWeb 2.0Web site developmentWeb 2.0.Web site development.006.7006.76Makarov Aleksandr1616762Xue Qiang1616763MiAaPQMiAaPQMiAaPQBOOK9910815025203321Yii 1.1 application development cookbook3947654UNINA