This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

autumn
autumn

<?php namespace My\Namespace\Classes;

use Backend\Behaviors\RelationController;

class OfferRelationController extends RelationController {}

Just doing that and then implementing that behaviour in a Controller, leads to an exception on line 279 of RelationController.php, telling me that $this->model is not defined. Why is that? How can I properly extend the RelationController?

Last updated

philipptempel
philipptempel

You need to public $implement the RelationController not extend it as you would do in standard PHP. See the docs for more info.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.