Skip to content
Sunel edited this page May 29, 2015 · 8 revisions

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.

Strict Mode

Enabling Strict mode will require all the router as Named routes,if name are missing will throw an unhandled Layout\Exceptions\InvalidRouterNameException.

Template Hints

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.

Sample Menus

Enabling sample menu will add few top menu.This is just a hint to show how a menu can be added.

Session Name

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.

XML Location

List of absolute location path of the layout xml files.

Cache

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.

Head Options

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.

← Installation | Add First Page →

Clone this wiki locally