dev-master
9999999-devImprovements to Yii2 framework.
MIT
The Requires
by Joey Claessen
by Sam Mousa
Improvements to Yii2 framework.
Improvements for Yii2 that make it more "magic"., (*2)
Use this trait in your controller to get dependency injection in controller actions., (*3)
use \SamIT\Yii2\Traits\ActionInjectionTrait;
Use this trait in your form to highlight unsafe attributes., (*4)
use \SamIT\Yii2\Traits\HighlightUnsafeAttributesTrait;
Use this trait in your active record model to implement single table inheritance., (*5)
use \SamIT\Yii2\Traits\SingleTableInheritanceTrait; protected static function inheritanceConfig() { return [ 'map' => [ PartnerProject::class => 'partner' ], 'column' => 'type' ]; }
This trait uses a different query object. If you use your own ActiveQuery
implementation, use SingleTableInheritanceQueryTrait
., (*6)
Improvements to Yii2 framework.
MIT