Roots Discourse

Use components in helpers.php in Sage 10

Hello, I’ve used search to try to find out an answer, but I had no luck.
So, I’m starting to create a custom widget in the “app/helpers.php” file. There’s a way to use @component(‘my-component’, …) to render a template already defined and used in other areas for my widget?

If yes, how?

Thanks.

I think \Roots\view('my-component'); will work

This topic was automatically closed after 42 days. New replies are no longer allowed.