I extends the RelationController class, but cause an error:
Relation behavior used in Custom\Site\Controllers\Activities does not have a model defined.
Location: modules\backend\behaviors\RelationController.php line 296
My source is simple:
class Activities extends Controller
{
public $implement = ['Backend\Behaviors\ListController','Backend\Behaviors\FormController','Custom\Site\Behaviors\RelationController'];
...
}
class RelationController extends \Backend\Behaviors\RelationController
{
public function __construct($controller)
{
parent::__construct($controller);
}
protected function makeViewWidget()
{
// TODO
return parent::makeViewWidget();
}
}
Anybody has an idea what could go wrong?