array( 'currentapp' => 'etemplate', 'noheader' => True, 'nonavbar' => True, 'app_header' => 'eT2 Test', 'js_link_registry' => True, ) ); include('../../../header.inc.php'); use EGroupware\Api; Api\Framework::includeJS('.','etemplate2','etemplate'); Api\Framework::includeJS('jquery','jquery.tools.min','phpgwapi'); // Not needed once JS require works for files like this Api\Framework::includeJS('jquery','jquery.html5_upload','phpgwapi'); // Not needed once JS require works for files like this Api\Framework::includeCSS('/api/js/etemplate/test/test.css'); /* * Test using any actual template */ $template = 'etemplate.et2_test_file_upload'; if($template) { $etemplate = new Api\Etemplate('etemplate.et2_test_file_upload'); $etemplate->exec('',array()); return; } echo $GLOBALS['egw']->framework->header(); ?> Testing from inside framework, so JS includes work
Choose one of the following tests:
ETemplate2 container:
framework->footer();