In a Sage 9x theme. I have a layout partial that will include different partials based on the post type or template.
I’d love to move this logic to a controller and have the public function return the desired template.
I’ve seen posts using App\template(‘blade.file’). However these answers I am assuming are from before the namespacing for controllers changed. When I try the above, I get a namespace error.
Any idea how I can access the template function from inside my controller post namespace changing to App\Controllers?
I’ve tried App\Controllers\template() but no luck.