I’m using October v3 and have created a plugin. I can create and tinker with Controller actions and create custom views. When these are for the backend the views correctly use the backend/admin layout template.
If I create a controller, action and view to use the default frontend theme/layout I cannot get this to work. I can render the view with all the data and markup, but no surrounding template.
I have tried a bunch of things (see below) but I cannot seem to get the default cms theme showing in my custom view.
//return view(“index”, compact(‘event’));
//$view = View::make(‘jamie.events::index’, [‘event’ => $event]);
//return View::make(‘jamie.events::index’, [‘event’ => $event]);
$cmsController = new \Cms\Classes\Controller; return $cmsController->render('test3', ['event' => $event]);
Thanks in advance if anyone can help!