Created
March 25, 2015 15:50
-
-
Save mmarum-sugarcrm/6b46884056d2d7114a18 to your computer and use it in GitHub Desktop.
Foo layout with a component definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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