Relation
-
GtcSaveRelationsBehavior
saves related records. -
GtcRelation
displays an input widget for relations.
These components were originally part of the gii-template-collection, credits to thyseus
Usage
composer autoloading
Just prepend a backslash to trigger the composer autoloader, requires Yii 1.1.14
.
\GtcSaveRelationsBehavior
Yii autoloading
Import the component in your application configuration:
'import' => array(
'vendor.schmunk42.relation.behaviors.*',
)