Yii PHP Framework
  • Guide
  • API
  • Wiki
  • Forum
  • Community
    • Live Chat
    • Extensions
    • Resources
    • Members
    • Hall of Fame
    • Badges
  • More
    • Learn
    • Books
    • Resources
    • Develop
    • Download Yii
    • Report an Issue
    • Report a Security Issue
    • Contribute to Yii
    • Donate
    • About
    • What is Yii?
    • Release Cycle
    • News
    • License
    • Team
    • Official Logos and Design
  • Login
The Definitive Guide to Yii 2.0
  • PDF
  • Offline HTML (tar.gz)
  • Offline HTML (tar.bz2)
  • العربية
  • Español
  • Français
  • Bahasa Indonesia
  • 日本語
  • Polski
  • Português brasileiro
  • Русский
  • Українська
  • Oʻzbekcha
  • 简体中文
  • Tiếng Việt
  • 1.1
  • 1.0

Introduction

  • About Yii
  • Upgrading from Version 1.1

Getting Started

  • What do you need to know
  • Installing Yii
  • Running Applications
  • Saying Hello
  • Working with Forms
  • Working with Databases
  • Generating Code with Gii
  • Looking Ahead

Application Structure

  • Application Structure Overview
  • Entry Scripts
  • Applications
  • Application Components
  • Controllers
  • Models
  • Views
  • Modules
  • Filters
  • Widgets
  • Assets
  • Extensions

Handling Requests

  • Request Handling Overview
  • Bootstrapping
  • Routing and URL Creation
  • Requests
  • Responses
  • Sessions and Cookies
  • Handling Errors
  • Logging

Key Concepts

  • Components
  • Properties
  • Events
  • Behaviors
  • Configurations
  • Aliases
  • Class Autoloading
  • Service Locator
  • Dependency Injection Container

Working with Databases

  • Database Access Objects
  • Query Builder
  • Active Record
  • Migrations
  • Sphinx
  • Redis
  • MongoDB
  • ElasticSearch

Getting Data from Users

  • Creating Forms
  • Validating Input
  • Uploading Files
  • Collecting Tabular Input
  • Getting Data for Multiple Models
  • Extending ActiveForm on the Client Side

Displaying Data

  • Data Formatting
  • Pagination
  • Sorting
  • Data Providers
  • Data Widgets
  • Working with Client Scripts
  • Theming

Security

  • Security Overview
  • Authentication
  • Authorization
  • Working with Passwords
  • Cryptography
  • Auth Clients
  • Best Practices

Caching

  • Caching Overview
  • Data Caching
  • Fragment Caching
  • Page Caching
  • HTTP Caching

RESTful Web Services

  • Quick Start
  • Resources
  • Controllers
  • Filtering Collections
  • Routing
  • Response Formatting
  • Authentication
  • Rate Limiting
  • Versioning
  • Error Handling

Development Tools

  • Debug Toolbar and Debugger
  • Generating Code using Gii
  • Generating API Documentation

Testing

  • Testing Overview
  • Testing environment setup
  • Unit Tests
  • Functional Tests
  • Acceptance Tests
  • Fixtures

Special Topics

  • Advanced Project Template
  • Building Application from Scratch
  • Console Commands
  • Core Validators
  • Docker
  • Internationalization
  • Mailing
  • Performance Tuning
  • Shared Hosting Environment
  • Template Engines
  • Working with Third-Party Code
  • Using Yii as a micro framework

Widgets

  • GridView
  • ListView
  • DetailView
  • ActiveForm
  • Pjax
  • Menu
  • LinkPager
  • LinkSorter
  • Bootstrap Widgets
  • jQuery UI Widgets

Helpers

  • Helpers Overview
  • ArrayHelper
  • Html
  • Json
  • Url
  • About
  • About Yii
  • News
  • License
  • Contact Us
  • Downloads
  • Framework
  • Documentation
  • Extensions
  • Logo
  • Documentation
  • Guide
  • API
  • Wiki
  • Resources
  • Development
  • Contribute
  • Latest Updates
  • Report a Bug
  • Report Security Issue
  • Community
  • Forum
  • Live Chat
  • Facebook Group
  • Hall of Fame
  • Badges
  • Terms of service
  • License
  • Website Source Code
  •  
  • © 2008 - 2023 Yii
  • Design: Eshill
  • Terms of service
  • License
  • Website Source Code
  •  
  • © 2008 - 2023 Yii
  • Design: Eshill
  • Supported by
  • OpenCollective
  • JetBrains logo