Created
April 13, 2015 23:46
-
-
Save dwheeler/f59432cc932de4f35aae to your computer and use it in GitHub Desktop.
Simple Custom Layout (#Accounts/layout/my-layout)
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
<?php | |
//custom/modules/Accounts/clients/base/layouts/my-layout/my-layout.php | |
$viewdefs['Accounts']['base']['layout']['my-layout'] = array( | |
'components' => array( | |
array( | |
'view' => 'my-view', | |
) | |
) | |
); |
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
//custom/modules/Accounts/clients/base/views/my-view/my-view.js | |
({ | |
_render: function() { | |
this.$el.html("Hello World!"); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment