function smarty_function_supItem($params, &$smarty) { $datos = FnCrm::getSupItems($params['sbSupplId']); $cabeceras = array('sbItemNam' => 'Nombre del item'); return FnView::printSingleArrayAsDatatable($datos, $cabeceras, "class='table_toggle table table-striped table-bordered table-hover table-condensed'", true, "tblItemSup"); }