Skip to content

Instantly share code, notes, and snippets.

@Logiks
Created December 20, 2016 09:29
Show Gist options
  • Save Logiks/bc612d9910d87d9f0882e564a5898168 to your computer and use it in GitHub Desktop.
Save Logiks/bc612d9910d87d9f0882e564a5898168 to your computer and use it in GitHub Desktop.
Boilerplate for quick CMS/DGOffice Module
<?php
if(!defined('ROOT')) exit('No direct script access allowed');
loadModule("pages");
function pageContentArea() {
return "workspace";
}
function pageSidebar() {
return "sidebar";
}
echo _js(["module1"]);
printPageComponent(false,[
"toolbar"=>[
"tab1"=>["title"=>"Tab1","align"=>"right","class"=>"active"],
"tab2"=>["title"=>"Tab2","align"=>"right"],
// ["title"=>"Search Site","type"=>"search","align"=>"left"]
"refreshList"=>["icon"=>"<i class='fa fa-refresh'></i>"],
['type'=>"bar"],
"createRecord"=>["icon"=>"<i class='fa fa-plus'></i>"],
],
"sidebar"=>false,
"contentArea"=>"pageContentArea"
]);
?>
<?php
if(!defined('ROOT')) exit('No direct script access allowed');
checkServiceAccess();
switch($_REQUEST['action']) {
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment