Hi all,
I have a custom controller inside my plugin. The routing is done by my plugins 'routes.php' file.
Is it possible to return a page/view from a theme by my controller method?
Example:
class MyController extends Controller
{
public function showItem($id)
{
return view('myTheme::pages.item_single');
}
}
more explanation:
I have my own theme developed and a plugin with frontend logic (frontend controllers).
I have several cms pages (theme related) but I also want to have custom routing (plugin related).
Now i need a way to connect both. Means I want to return a theme layout from a custom route inside my plugins routes.php
If this is not possible: any ideas how to solve this problem in a different way?
thanks, alex :)
Last updated