The Definitive Guide to Yii 2.0 =============================== This tutorial is released under the [Terms of Yii Documentation](https://www.yiiframework.com/doc/terms/). All Rights Reserved. 2014 (c) Yii Software LLC. Introduction ------------ * [About Yii](intro-yii.md) * [Upgrading from Version 1.1](intro-upgrade-from-v1.md) Getting Started --------------- * [What do you need to know](start-prerequisites.md) * [Installing Yii](start-installation.md) * [Running Applications](start-workflow.md) * [Saying Hello](start-hello.md) * [Working with Forms](start-forms.md) * [Working with Databases](start-databases.md) * [Generating Code with Gii](start-gii.md) * [Looking Ahead](start-looking-ahead.md) Application Structure --------------------- * [Application Structure Overview](structure-overview.md) * [Entry Scripts](structure-entry-scripts.md) * [Applications](structure-applications.md) * [Application Components](structure-application-components.md) * [Controllers](structure-controllers.md) * [Models](structure-models.md) * [Views](structure-views.md) * [Modules](structure-modules.md) * [Filters](structure-filters.md) * [Widgets](structure-widgets.md) * [Assets](structure-assets.md) * [Extensions](structure-extensions.md) Handling Requests ----------------- * [Request Handling Overview](runtime-overview.md) * [Bootstrapping](runtime-bootstrapping.md) * [Routing and URL Creation](runtime-routing.md) * [Requests](runtime-requests.md) * [Responses](runtime-responses.md) * [Sessions and Cookies](runtime-sessions-cookies.md) * [Handling Errors](runtime-handling-errors.md) * [Logging](runtime-logging.md) Key Concepts ------------ * [Components](concept-components.md) * [Properties](concept-properties.md) * [Events](concept-events.md) * [Behaviors](concept-behaviors.md) * [Configurations](concept-configurations.md) * [Aliases](concept-aliases.md) * [Class Autoloading](concept-autoloading.md) * [Service Locator](concept-service-locator.md) * [Dependency Injection Container](concept-di-container.md) Working with Databases ---------------------- * [Database Access Objects](db-dao.md): Connecting to a database, basic queries, transactions, and schema manipulation * [Query Builder](db-query-builder.md): Querying the database using a simple abstraction layer * [Active Record](db-active-record.md): The Active Record ORM, retrieving and manipulating records, and defining relations * [Migrations](db-migrations.md): Apply version control to your databases in a team development environment * [Sphinx](https://www.yiiframework.com/extension/yiisoft/yii2-sphinx/doc/guide) * [Redis](https://www.yiiframework.com/extension/yiisoft/yii2-redis/doc/guide) * [MongoDB](https://www.yiiframework.com/extension/yiisoft/yii2-mongodb/doc/guide) * [ElasticSearch](https://www.yiiframework.com/extension/yiisoft/yii2-elasticsearch/doc/guide) Getting Data from Users ----------------------- * [Creating Forms](input-forms.md) * [Validating Input](input-validation.md) * [Uploading Files](input-file-upload.md) * [Collecting Tabular Input](input-tabular-input.md) * [Getting Data for Multiple Models](input-multiple-models.md) * [Extending ActiveForm on the Client Side](input-form-javascript.md) Displaying Data --------------- * [Data Formatting](output-formatting.md) * [Pagination](output-pagination.md) * [Sorting](output-sorting.md) * [Data Providers](output-data-providers.md) * [Data Widgets](output-data-widgets.md) * [Working with Client Scripts](output-client-scripts.md) * [Theming](output-theming.md) Security -------- * [Security Overview](security-overview.md) * [Authentication](security-authentication.md) * [Authorization](security-authorization.md) * [Working with Passwords](security-passwords.md) * [Cryptography](security-cryptography.md) * [Auth Clients](https://www.yiiframework.com/extension/yiisoft/yii2-authclient/doc/guide) * [Best Practices](security-best-practices.md) Caching ------- * [Caching Overview](caching-overview.md) * [Data Caching](caching-data.md) * [Fragment Caching](caching-fragment.md) * [Page Caching](caching-page.md) * [HTTP Caching](caching-http.md) RESTful Web Services -------------------- * [Quick Start](rest-quick-start.md) * [Resources](rest-resources.md) * [Controllers](rest-controllers.md) * [Filtering Collections](rest-filtering-collections.md) * [Routing](rest-routing.md) * [Response Formatting](rest-response-formatting.md) * [Authentication](rest-authentication.md) * [Rate Limiting](rest-rate-limiting.md) * [Versioning](rest-versioning.md) * [Error Handling](rest-error-handling.md) Development Tools ----------------- * [Debug Toolbar and Debugger](https://www.yiiframework.com/extension/yiisoft/yii2-debug/doc/guide) * [Generating Code using Gii](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide) * [Generating API Documentation](https://www.yiiframework.com/extension/yiisoft/yii2-apidoc) Testing ------- * [Testing Overview](test-overview.md) * [Testing environment setup](test-environment-setup.md) * [Unit Tests](test-unit.md) * [Functional Tests](test-functional.md) * [Acceptance Tests](test-acceptance.md) * [Fixtures](test-fixtures.md) Special Topics -------------- * [Advanced Project Template](https://www.yiiframework.com/extension/yiisoft/yii2-app-advanced/doc/guide) * [Building Application from Scratch](tutorial-start-from-scratch.md) * [Console Commands](tutorial-console.md) * [Core Validators](tutorial-core-validators.md) * [Docker](tutorial-docker.md) * [Internationalization](tutorial-i18n.md) * [Mailing](tutorial-mailing.md) * [Performance Tuning](tutorial-performance-tuning.md) * [Shared Hosting Environment](tutorial-shared-hosting.md) * [Template Engines](tutorial-template-engines.md) * [Working with Third-Party Code](tutorial-yii-integration.md) * [Using Yii as a micro framework](tutorial-yii-as-micro-framework.md) Widgets ------- * [GridView](https://www.yiiframework.com/doc-2.0/yii-grid-gridview.html) * [ListView](https://www.yiiframework.com/doc-2.0/yii-widgets-listview.html) * [DetailView](https://www.yiiframework.com/doc-2.0/yii-widgets-detailview.html) * [ActiveForm](https://www.yiiframework.com/doc-2.0/guide-input-forms.html#activerecord-based-forms-activeform) * [Pjax](https://www.yiiframework.com/doc-2.0/yii-widgets-pjax.html) * [Menu](https://www.yiiframework.com/doc-2.0/yii-widgets-menu.html) * [LinkPager](https://www.yiiframework.com/doc-2.0/yii-widgets-linkpager.html) * [LinkSorter](https://www.yiiframework.com/doc-2.0/yii-widgets-linksorter.html) * [Bootstrap Widgets](https://www.yiiframework.com/extension/yiisoft/yii2-bootstrap/doc/guide) * [jQuery UI Widgets](https://www.yiiframework.com/extension/yiisoft/yii2-jui/doc/guide) Helpers ------- * [Helpers Overview](helper-overview.md) * [ArrayHelper](helper-array.md) * [Html](helper-html.md) * [Json](helper-json.md) * [Url](helper-url.md)