function saveImportTemplatesPeekAction() { @($view_id = DevblocksPlatform::importGPC($_REQUEST['view_id'], 'string', '')); @($portal = DevblocksPlatform::importGPC($_REQUEST['portal'], 'string', '')); @($import_file = $_FILES['import_file']); DAO_DevblocksTemplate::importXmlFile($import_file['tmp_name'], 'portal_' . $portal); // Clear template cache $tpl = DevblocksPlatform::getTemplateService(); $tpl->clear_compiled_tpl(); DevblocksPlatform::redirect(new DevblocksHttpResponse(array('community', $portal, 'templates'))); }