mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00

* added pcntl to requirements check * Fix #13920: Fixed erroneous validation for specific cases * Fix #13920: Added my name to CHANGELOG.md * trim(): Passing null to parameter #1 ($string) of type string is deprecated * Added section about Unsafe Reflection in Security best practices doc (#19948) Co-authored-by: Bizley <pawel.bizley@gmail.com> * Update CHANGELOG.md * Fixed tests. * Fix #13920: Add unit test * Update `bower-asset/inputmask`, `bower-asset/punycode`. * added CHANGELOG line * Fix order. * fix: #19978 - Mistake in Korean translation * fix: keep doublequote * Do not duplicate log messages in memory * Update framework/log/FileTarget.php Co-authored-by: Bizley <pawel.bizley@gmail.com> * Update concept-di-container.md Сслка "Конфигурация приложения" была не верной, она вела на страницу "Service-locator'a" * Update CHANGELOG.md * release version 2.0.49.1 * prepare for next release * Revert changes in `mimeTypes.php` from 4a1f2c6b9bc90427e91da73f5e8c8fa33d3c53c1 restores https://github.com/yiisoft/yii2/pull/19936 * update actions/checkout to v4 * Fix mime type generator * Added note * Update structure-controllers.md (#20003) добавил пропущенное слово "как" * Update CHANGELOG.md 2.0.49.2 changelog * release version 2.0.49.2 * prepare for next release * New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor(). * Fixed a bug where the yii serve command would break if a custom router was supplied and it had a space in the path * Fix `MaskedInputAsset::class`. * Fix #19927: Fixed `console\controllers\MessageController` when saving translations to database: fixed FK error when adding new string and language at the same time, checking/regenerating all missing messages and dropping messages for unused languages * Added 'zh' into 'framework/messages/config.php' (#19995) --------- Co-authored-by: Tobias Munk <schmunk@usrbin.de> Co-authored-by: Tim Fischer <tf@maschinensucher.de> Co-authored-by: Tim Fischer <35448254+tim-fischer-maschinensucher@users.noreply.github.com> Co-authored-by: Alexander Makarov <sam@rmcreative.ru> Co-authored-by: Oleg Poludnenko <ua.oleg@gmail.com> Co-authored-by: Bizley <pawel.bizley@gmail.com> Co-authored-by: Sonia Zorba <zonia3000@gmail.com> Co-authored-by: Tobias Munk <t.munk@herzogkommunikation.de> Co-authored-by: Akbar Herlambang <akbar6393222@yahoo.com> Co-authored-by: lubosdz <lubosdz@gmail.com> Co-authored-by: Yuriy Bachevskiy <Materik-r@yandex.ru> Co-authored-by: Robert Korulczyk <robert@korulczyk.pl> Co-authored-by: salehhashemi1992 <81674631+salehhashemi1992@users.noreply.github.com> Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com> Co-authored-by: Brad Bell <brad@pixelandtonic.com> Co-authored-by: Alexandru Trandafir Catalin <alex@heavydots.com> Co-authored-by: Nabi KaramAliZadeh <NabiKAZ@gmail.com>
The Definitive Guide to Yii 2.0
This tutorial is released under the Terms of Yii Documentation.
All Rights Reserved.
2014 (c) Yii Software LLC.
Introduction
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: Connecting to a database, basic queries, transactions, and schema manipulation
- Query Builder: Querying the database using a simple abstraction layer
- Active Record: The Active Record ORM, retrieving and manipulating records, and defining relations
- Migrations: Apply version control to your databases in a team development environment
- 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
Security
- Security Overview
- Authentication
- Authorization
- Working with Passwords
- Cryptography
- Auth Clients
- Best Practices
Caching
RESTful Web Services
- Quick Start
- Resources
- Controllers
- Filtering Collections
- Routing
- Response Formatting
- Authentication
- Rate Limiting
- Versioning
- Error Handling
Development Tools
Testing
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