-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
If you haven't already publish the packages configuration file.
$ php artisan vendor:publish --provider="Layout\Provider\LayoutServiceProvider" --tag=config
Open app/config/layout.php
in your editor.
Enabling Strict mode will require all the router as Named routes,if name are missing will throw an unhandled Layout\Exceptions\InvalidRouterNameException
.
Enabling template hint will allow you to visualize the class name and the template loaded for the block in the client side.This is will let the developer easily look for the block which they need to debug.
Enabling sample menu will add few top menu.This is just a hint to show how a menu can be added.
This variable is used to get the session details for caching purpose. Mostly this is will the same name given in the 'session.cookie' config.
List of absolute location path of the layout xml files.
Block
Enabling block cache will cache the block HTML output with the given option.
Layout
Enabling layout cache will cache the genrated xml files based on each handles (routers) and also avoid fetching from file every time.
This section will be used to fill the basic option required in the <head>
section.
Title Use to set the page default title , prefix & suffix will added to the title respectively.
Includes To add extra content in the head section. This can be anything.