Important
Yii 3 is under active development! The roadmap for Yii 3.0 and beyond has been moved to yiisoft/docs.
Note
Yii 2.0 remains actively maintained with ongoing support for bug fixes, security updates, and the new 22.0 branch.
| Standalone Actions | |
| ================== | |
| > Available since version 22.0. | |
| This tutorial introduces the `Module::$actionMap` feature added in Yii 22.0. It explains how a single `yii\base\Action` | |
| subclass can be routed directly without a hosting controller, walks through a complete CRUD example backed by ActiveRecord, | |
| and clarifies how this coexists with the traditional controller approach. | |
| The traditional controller approach is unchanged |
| { | |
| "subtrees": { | |
| "framework": { | |
| "prefix": "framework", | |
| "remote": "https://github.com/yiisoft/yii2-framework.git", | |
| "branch": "master" | |
| } | |
| } | |
| } |
Important
Yii 3 is under active development! The roadmap for Yii 3.0 and beyond has been moved to yiisoft/docs.
Note
Yii 2.0 remains actively maintained with ongoing support for bug fixes, security updates, and the new 22.0 branch.
| <?php | |
| declare(strict_types=1); | |
| namespace Yii\Extension\Simple\Forms\Tests; | |
| use InvalidArgumentException; | |
| use PHPUnit\Framework\TestCase; | |
| use Yii\Extension\Simple\Forms\FormBuilder; | |
| use Yii\Extension\Simple\Forms\Password; |
| { | |
| "Yiisoft\\Yii\\Debug\\Collector\\LogCollector": [], | |
| "Yiisoft\\Yii\\Debug\\Collector\\EventCollector": [ | |
| { | |
| "name": "Yiisoft\\Yii\\Web\\Event\\ApplicationStartup", | |
| "event": "object@Yiisoft\\Yii\\Web\\Event\\ApplicationStartup#300", | |
| "time": 1631219399.655668 | |
| }, | |
| { | |
| "name": "Yiisoft\\Yii\\Web\\Event\\AfterRequest", |
| #Add in your composer codeception tests. | |
| $composer require codeception/codeception:^3.0 | |
| #Create your directory /tests in your proyect | |
| $mkdir /tests | |
| #Create codepction systems tests with namespaces | |
| $vendor/bin/codecept bootstrap --namespace AppTests | |
| #Custom options codeception.yml: |