diff --git a/src/Plugin.php b/src/CakeLtePlugin.php similarity index 91% rename from src/Plugin.php rename to src/CakeLtePlugin.php index 1db89b4..4698ba0 100644 --- a/src/Plugin.php +++ b/src/CakeLtePlugin.php @@ -12,8 +12,13 @@ /** * Plugin for CakeLte */ -class Plugin extends BasePlugin +class CakeLtePlugin extends BasePlugin { + + const LAYOUT_DEFAULT = 'CakeLte.default'; + const LAYOUT_LOGIN = 'CakeLte.login'; + const LAYOUT_TOP_NAV = 'CakeLte.top-nav'; + /** * Load all the plugin configuration and bootstrap logic. * diff --git a/src/View/CakeLteView.php b/src/View/CakeLteView.php index 1dc5eab..e18685f 100644 --- a/src/View/CakeLteView.php +++ b/src/View/CakeLteView.php @@ -4,12 +4,13 @@ namespace CakeLte\View; use Cake\View\View; +use CakeLte\CakeLtePlugin; class CakeLteView extends View { use CakeLteTrait; - public string $layout = 'CakeLte.default'; + public string $layout = CakeLtePlugin::LAYOUT_DEFAULT; /** * @inheritDoc