This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

enrico21495
enrico21495

Is there any way to use a blade template from inside a plugin?

I only managed to use blade in the /resouces/views/ path, which is global...

What I'd like to do is something like

 view('view-folder/viewname', 'Author.PluginName', [ vars... ]);

Thanks

JeffGoldblum
JeffGoldblum

No, October does not use Blade, it uses Twig and PHP. This is explained here: https://octobercms.com/forum/post/why-twig

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.