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
Hi all,
I have a backend controller that serves two purposes:
- To provide back end CRUD forms for application models
- 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