-
Notifications
You must be signed in to change notification settings - Fork 40
Themes
m3nt0r edited this page Jun 25, 2012
·
1 revision
The plugin has support for themes and works just like the "Theme" view. Simply add the $theme
property to your controller and you're set.
class AppController extends Controller {
public $view = 'Twig.Twig';
public $theme = 'lobster';
}
This will cause the view to also look in the "themed" folder for templates. In the above example templates in the following directory are favored over their non-themed version.
app/views/themed/lobster/
If you, for example, want to overwrite the layouts/default.tpl
file in the lobster
theme,
then create this file:
app/views/themed/lobster/layouts/default.tpl