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

joaquimds36682
joaquimds36682

Hi all,

I have a backend controller that serves two purposes:

  1. To provide back end CRUD forms for application models
  2. To provide custom routes to retrieve these models

In the controller, I have:

public function __construct()
{
    $this->middleware(HandleCors::class);

    parent::__construct();
}

This works when I use a custom route defined in my routes.php, but throws an Exception when I visit the backend route:

Call to a member function call() on string
./modules/backend/Classes/BackendController.php line 91

Is there any way to fix this?

1-1 of 1

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