function showTabAttachmentsAction() { $tpl = DevblocksPlatform::getTemplateService(); $tpl->assign('path', $this->_TPL_PATH); $tpl->assign('response_uri', 'config/attachments'); $defaults = new C4_AbstractViewModel(); $defaults->class_name = 'C4_AttachmentView'; $defaults->id = C4_AttachmentView::DEFAULT_ID; $view = C4_AbstractViewLoader::getView(C4_AttachmentView::DEFAULT_ID, $defaults); $tpl->assign('view', $view); $tpl->assign('view_fields', C4_AttachmentView::getFields()); $tpl->assign('view_searchable_fields', C4_AttachmentView::getSearchFields()); $tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/attachments/index.tpl'); }
function showTabAttachmentsAction() { $tpl = DevblocksPlatform::getTemplateService(); $tpl->cache_lifetime = "0"; $tpl->assign('path', $this->_TPL_PATH); $tpl->assign('response_uri', 'config/attachments'); $view = C4_AbstractViewLoader::getView('C4_AttachmentView', C4_AttachmentView::DEFAULT_ID); $tpl->assign('view', $view); $tpl->assign('view_fields', C4_AttachmentView::getFields()); $tpl->assign('view_searchable_fields', C4_AttachmentView::getSearchFields()); $tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/attachments/index.tpl'); }