Skip to Content

Yii 1.1 Application Development Cookbook Table of Contents


Table of Contents

Preface
Chapter 1: Under the Hood
Chapter 2: Router, Controller, and Views
Chapter 3: AJAX and jQuery
Chapter 4: Working with Forms
Chapter 5: Testing your Application
Chapter 6: Database, Active Record, and Model Tricks
Chapter 7: Using Zii Components
Chapter 8: Extending Yii
Chapter 9: Error handling, Debugging, and Logging
Chapter 10: Security
Chapter 11: Performance Tuning
Chapter 12: Using External Code
Chapter 13: Deployment
Index

  • 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
      • Using base controller
      • Using 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
          • Customizing CAPTCHA
          • Creating 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
              • Automating timestamps
              • Setting an author automatically
              • Implementing single table inheritance
              • Using CDbCriteria
                • 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 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 13: Deployment
                            • Introduction
                            • Changing the Yii directories layout
                            • Moving an application out of webroot
                            • Sharing the framework directory
                            • Moving configuration parts into separate files
                            • Using multiple configurations to simplify the deployment
                            • Implementing and executing cron jobs
                            • Maintenance mode

                            Awards Nominations Voting Sponsors Previous Winners
                            Judges Open Source CMS Open Source Mobile Toolkit and Libraries Most Promising Open Source Project Open Source Business Applications Open Source JavaScript Libraries Open Source Multimedia Software
                            Resources
                            Open Source CMS Open Source Mobile Toolkit and Libraries Most Promising Open Source Project Open Source Business Applications Open Source JavaScript Libraries Open Source Multimedia Software
                            Open Source Content Management Customer Relationship Management e-Commerce e-Learning Java Linux Servers Networking & Telephony PHP Web Graphics & Video Web Development
                            Enterprise BPEL Microsoft Oracle SOA Web Services
                            Other Packt Books .Net Web Graphics & Video Beginner Guides Cookbooks