schmunk42/relation

Yii Framework components for active record relations

Installs: 7 248

Dependents: 5

Stars: 8

Watchers: 2

Forks: 3

Open Issues: 1

Language: PHP

1.1.0 2014-06-23 20:58 UTC

README

  • 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.*',
)