-
Notifications
You must be signed in to change notification settings - Fork 71
Usage in Spark
Shea Lewis (Kai) edited this page Sep 28, 2016
·
1 revision
As you do not have complete access to all the controllers within Spark without really digging under the hood, you may set the current active theme within your AppServiceProvider
's boot method:
Theme::setLayout('layouts.default');
And finally, when building your views and extending the layout, you may use the getLayout
method in place of $theme_layout
:
@extends(\Theme::getLayout())
Thanks to @drjonnicholson for sharing this information!