Skip to content

Instantly share code, notes, and snippets.

@mmarum-sugarcrm
Created March 25, 2015 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmarum-sugarcrm/6b46884056d2d7114a18 to your computer and use it in GitHub Desktop.
Save mmarum-sugarcrm/6b46884056d2d7114a18 to your computer and use it in GitHub Desktop.
Foo layout with a component definition
$viewdefs['base']['layout']['foo'] = array(
'components' => array(
array(
'layout' => 'header', //reference another definition
),
array(
'layout' => array( //directly include definition
'components' => array(
array(
'view' => 'title', //reference another definition
),
array(
'view' => 'content', //reference another definition
),
),
'type' => 'base',
'name' => 'my-custom-main',
),
),
),
'type' => 'foo',
'name' => 'my-custom-page'
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment