Created
December 20, 2016 09:29
-
-
Save Logiks/bc612d9910d87d9f0882e564a5898168 to your computer and use it in GitHub Desktop.
Boilerplate for quick CMS/DGOffice Module
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 | |
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" | |
]); | |
?> |
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 | |
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