adding a dummy test method/template example files using: G::RenderPage('publish', 'minimal');

This commit is contained in:
Erik Amaru Ortiz
2013-09-26 15:20:28 -04:00
parent 3294ea644c
commit e4ea01134a
3 changed files with 16 additions and 2 deletions

View File

@@ -51,8 +51,7 @@ if ($RBAC->userCanAccess('PM_SETUP') == 1 || $RBAC->userCanAccess('PM_USERS') ==
$G_TMP_MENU->AddIdRawOption('SETUP', 'setup/main', G::LoadTranslation('ID_SETUP'), '', '', '', 'x-pm-setup');
}
$G_TMP_MENU->AddIdRawOption('TEST', 'test/main', 'Test', '', '', '', 'x-pm-setup');
$G_TMP_MENU->AddIdRawOption('TEST2', 'test2/main', 'Test2', '', '', '', 'x-pm-setup');
$G_TMP_MENU->AddIdRawOption('DESIGNER', 'designer/main', 'Designer 2', '', '', '', 'x-pm-setup');
// PLUGINS MENUS
if( file_exists(PATH_CORE . 'menus/plugin.php') ) {

View File

@@ -0,0 +1,9 @@
<?php
$G_MAIN_MENU = 'processmaker';
$G_ID_MENU_SELECTED = 'DESIGNER';
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent( 'view', 'designer/main' );
G::RenderPage('publish', 'minimal');

View File

@@ -0,0 +1,6 @@
<?php
$sessionId = session_id();
?>
<h1>We can put all html code for new Designer!</h1>
<h2>On a clean environment!!</h2>
<h3>Session Id: <?php echo $sessionId?></h3>