Hello,
I'm attempting to switch out the current theme with a completely different one whenever at the login screen. However testing the concept of switching themes on the fly doesn't seem to be working...
class PageExtension extends Extension
{
public function onBeforeInit()
{
Debug::message(SSViewer::get_theme_folder());
SSViewer::set_theme('login-theme');
Debug::message(SSViewer::get_theme_folder());
parent::init();
}
}
---
Name: custom-login
After:
- 'framework/*'
- 'cms/*'
---
Page_Controller:
extensions:
- PageExtension
Shows the theme folder is switching, but the default theme is still being loaded. Do I need to call re-render or something similar?
Any ideas on how to go about this?