# The Definitive Guide to Yii 2.0

> Table of contents of the guide: getting started, application structure, requests, key concepts, databases, forms, output, security, caching, REST and testing.

Các hướng dẫn được phát hành theo [Các điều khoản về tài liệu Yii](https://www.yiiframework.com/doc/terms/).

Tất cả bản quyền đã được bảo hộ (All Rights Reserved).

2014 (c) Yii Software LLC.

## Giới thiệu

- [Về Yii](/docs/vi/guide/intro-yii/index.md)
- [Hướng dẫn nâng cấp lên từ phiên bản 1.1](/docs/vi/guide/intro-upgrade-from-v1/index.md)

## Bắt đầu

- [Những gì bạn cần biết](/docs/vi/guide/start-prerequisites/index.md)
- [Cài đặt Yii](/docs/vi/guide/start-installation/index.md)
- [Thực hiện chạy ứng dụng](/docs/vi/guide/start-workflow/index.md)
- [Viết chương trình đầu tiên](/docs/vi/guide/start-hello/index.md)
- [Làm việc với Forms](/docs/vi/guide/start-forms/index.md)
- [Làm việc với Databases](/docs/vi/guide/start-databases/index.md)
- [Sử dụng Gii để sinh mã tự động](/docs/vi/guide/start-gii/index.md)
- [Nâng cao](/docs/vi/guide/start-looking-ahead/index.md)

## Kiến trúc ứng dụng (Application Structure)

- [Tổng quan về kiến trúc ứng dụng](/docs/vi/guide/structure-overview/index.md)
- [Mục Scripts](/docs/vi/guide/structure-entry-scripts/index.md)
- [Ứng dụng (Applications)](/docs/vi/guide/structure-applications/index.md)
- [Các thành phần bên trong ứng dụng](/docs/vi/guide/structure-application-components/index.md)
- [Controllers](/docs/vi/guide/structure-controllers/index.md)
- [Models](/docs/vi/guide/structure-models/index.md)
- [Views](/docs/vi/guide/structure-views/index.md)
- [Modules](/docs/vi/guide/structure-modules/index.md)
- [Bộ lọc (Filters)](/docs/guide/structure-filters/index.md)
- [Widgets](/docs/guide/structure-widgets/index.md)
- [Assets](/docs/guide/structure-assets/index.md)
- [Phần mở rộng (Extensions)](/docs/guide/structure-extensions/index.md)

## Xử lý yêu cầu (Handling Requests)

- [Tổng quan](/docs/guide/runtime-overview/index.md)
- [Khởi động](/docs/guide/runtime-bootstrapping/index.md)
- [Định tuyến (Routing) và khởi tạo đường dẫn (URL Creation)](/docs/guide/runtime-routing/index.md)
- [Yêu cầu (Requests)](/docs/guide/runtime-requests/index.md)
- [Kết quả (Responses)](/docs/guide/runtime-responses/index.md)
- [Sessions và Cookies](/docs/guide/runtime-sessions-cookies/index.md)
- [Xử lý lỗi (Handling Error)](/docs/guide/runtime-handling-errors/index.md)
- [Logging](/docs/guide/runtime-logging/index.md)

## Các khái niệm chính

- [Thành phần (Components)](/docs/guide/concept-components/index.md)
- [Thuộc tính (Properties)](/docs/guide/concept-properties/index.md)
- [Sự kiện (Events)](/docs/guide/concept-events/index.md)
- [Hành vi (Behaviors)](/docs/guide/concept-behaviors/index.md)
- [Cấu hình (Configurations)](/docs/guide/concept-configurations/index.md)
- [Bí danh (Aliases)](/docs/guide/concept-aliases/index.md)
- [Lớp tự động nạp (Autoloading)](/docs/guide/concept-autoloading/index.md)
- [Service Locator](/docs/guide/concept-service-locator/index.md)
- [Dependency Injection Container](/docs/guide/concept-di-container/index.md)

## Làm việc với Databases

- [Data Access Objects](/docs/guide/db-dao/index.md): Kết nối cơ sở dữ liệu, truy vấn cơ bản, giao dịch và phương thức hoạt động
- [Query Builder](/docs/guide/db-query-builder/index.md): Sử dụng một truy vấn đơn giản, các lớp cơ sở dữ liệu trừu tượng
- [Active Record](/docs/guide/db-active-record/index.md): The Active Record ORM, truy vấn và thao tác với dữ liệu, định nghĩa các mối quan hệ giữa các bảng
- [Migrations](/docs/guide/db-migrations/index.md): Cung cấp cho đội dự án một công cụ dễ dàng trong việc quản lý những schema CSDL trong ứng dụng
- [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)

## Nhận dữ liệu từ user

- [Tạo mới Forms](/docs/guide/input-forms/index.md)
- [Kiểm tra dữ liệu đầu vào (Validating Input)](/docs/guide/input-validation/index.md)
- [File Upload](/docs/guide/input-file-upload/index.md)
- [Thu thập dữ liệu từ danh sách đầu vào (Đang phát triển)](/docs/guide/input-tabular-input/index.md)
- [Lấy dữ liệu cho nhiều Models (Chưa giải quyết)](/docs/guide/input-multiple-models/index.md)
- [Mở rộng ActiveForm ở phía Máy khách](/docs/guide/input-form-javascript/index.md)

## Hiển thị dữ liệu

- [Định dạng dữ liệu (Data Formatting)](/docs/guide/output-formatting/index.md)
- [Phân trang (Pagination)](/docs/guide/output-pagination/index.md)
- [Sắp xếp (Sorting)](/docs/guide/output-sorting/index.md)
- [Cung cấp dữ liệu ra (Data Providers)](/docs/guide/output-data-providers/index.md)
- [Dữ liệu Widgets](/docs/guide/output-data-widgets/index.md)
- [làm việc với Client Scripts](/docs/guide/output-client-scripts/index.md)
- [Giao diện (Theming)](/docs/guide/output-theming/index.md)

## Bảo mật (Security)

- [Xác thực (Authentication)](/docs/guide/security-authentication/index.md)
- [Quyền (Authorization)](/docs/guide/security-authorization/index.md)
- [Các thao tác xử lý với Passwords (Đang phát triển)](/docs/guide/security-passwords/index.md)
- [Auth Clients](https://www.yiiframework.com/extension/yiisoft/yii2-authclient/doc/guide)
- [Best Practices](/docs/guide/security-best-practices/index.md)

## Bộ nhớ Cache

- [Tổng quan](/docs/guide/caching-overview/index.md)
- [Cache dữ liệu](/docs/guide/caching-data/index.md)
- [Fragment Caching](/docs/guide/caching-fragment/index.md)
- [Page Caching](/docs/guide/caching-page/index.md)
- [HTTP Caching](/docs/guide/caching-http/index.md)

## RESTful Web Services

- [Bắt đầu](/docs/guide/rest-quick-start/index.md)
- [Tài nguyên (Resources)](/docs/guide/rest-resources/index.md)
- [Bộ điều khiển (Controllers)](/docs/guide/rest-controllers/index.md)
- [Routing](/docs/guide/rest-routing/index.md)
- [Định dạng thông điệp gửi đi (Response Formatting)](/docs/guide/rest-response-formatting/index.md)
- [Xác thực (Authentication)](/docs/guide/rest-authentication/index.md)
- [Rate Limiting](/docs/guide/rest-rate-limiting/index.md)
- [Phiên bản (Version)](/docs/guide/rest-versioning/index.md)
- [Error Handling](/docs/guide/rest-error-handling/index.md)

## Công cụ phát triển (Development Tools)

- [Thanh công cụ gỡ lỗi và sửa lỗi (Debug Toolbar và Debugger)](https://www.yiiframework.com/extension/yiisoft/yii2-debug/doc/guide)
- [Sử dụng Gii để tạo code](https://www.yiiframework.com/extension/yiisoft/yii2-gii/doc/guide)
- [Tạo tài liệu về API ](https://www.yiiframework.com/extension/yiisoft/yii2-apidoc)

## Testing

- [Tổng quan](/docs/guide/test-overview/index.md)
- [Thiết lập môi trường](/docs/guide/test-environment-setup/index.md)
- [Unit Tests](/docs/guide/test-unit/index.md)
- [Kiểm tra chức năng (Functional Tests)](/docs/guide/test-functional/index.md)
- [Acceptance Tests](/docs/guide/test-acceptance/index.md)
- [Fixtures](/docs/guide/test-fixtures/index.md)

## Chủ đề năng cao

- [Advanced Application Template](https://www.yiiframework.com/extension/yiisoft/yii2-app-advanced/doc/guide)
- [Building Application from Scratch](/docs/guide/tutorial-start-from-scratch/index.md)
- [Giao diện dòng lệnh (Console Commands)](/docs/guide/tutorial-console/index.md)
- [Core Validators](/docs/guide/tutorial-core-validators/index.md)
- [Quốc tế hóa (Internationalization)](/docs/guide/tutorial-i18n/index.md)
- [Thư (Mailing)](/docs/guide/tutorial-mailing/index.md)
- [Tối ưu hiệu năng ứng dụng (Performance Tuning)](/docs/guide/tutorial-performance-tuning/index.md)
- [Shared Hosting Environment](/docs/guide/tutorial-shared-hosting/index.md)
- [Template Engines](/docs/guide/tutorial-template-engines/index.md)
- [Tích hợp mã nguồn của bên thứ ba (Working with Third-Party Code)](/docs/guide/tutorial-yii-integration/index.md)
- [Dùng Yii như các framework nhỏ](/docs/guide/tutorial-yii-as-micro-framework/index.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

- [Tổng quan](/docs/guide/helper-overview/index.md)
- [ArrayHelper](/docs/guide/helper-array/index.md)
- [Html](/docs/guide/helper-html/index.md)
- [Url](/docs/guide/helper-url/index.md)