• Home
  • Demo
  • Buy Now
RISE - Ultimate Project Manager & CRM
    RISE - Ultimate Project Manager & CRMInstallation & MaintenancePersonalizationSettingsClient ManagementAI AssistantInvoices & PaymentsProjects & TasksTeam & CollaborationProductivity ToolsSales & ServicesRISE ReportsPluginsFAQChange logs
Mailbox PluginLanding Page Builder PluginEasy Backup PluginSquare Payment Method PluginLogin as Client PluginAsset Management Plugin2 Factor Authentication PluginPassword Manager PluginSocial Login PluginGoogle Meet Integration PluginSpreadsheets PluginZoom Integration PluginAuto Attendance PluginWhiteboards PluginDocs PluginBlog Manager PluginWhatsApp Link PluginMicrosoft Teams Integration PluginProperty Management PluginTelegram Notification PluginAWS S3 Integration PluginWhatsApp Notification PluginWasabi Integration PluginBackblaze Integration PluginCloudflare R2 Integration PluginDigitalOcean Spaces Integration PluginAdyen Payment Method PluginbKash Payment Method Pluginiyzico Payment Method PluginJazzCash Payment Method PluginMercado Pago Payment Method PluginMidtrans Payment Method PluginMontonio Payment Method PluginN-Genius Payment Method PluginNagad Payment Method PluginPayFast Payment Method PluginPaysera Payment Method PluginPaystack Payment Method PluginPix Payment Method PluginRazorpay Payment Method PluginRocket Payment Method PluginSSLCommerz Payment Method Plugin
  1. Docs
  2. RISE - Ultimate Project Manager & CRM
  3. Plugins

Keep plugin lists and kanban boards fast

RISE has a few functions that keep big lists and kanban boards fast. Use them in your plugin when it shows long lists, or when a view or helper needs the signed in user.

Get the signed in user

Do not create a new Security_Controller in a helper, library or view only to read the signed in user. Every new controller runs several database queries, and in a list it runs once for every row.

Use this instead. It loads the user once per request:

$login_user = \App\Controllers\Security_Controller::get_shared_login_user();
if ($login_user->user_type === "staff") {
    //...
}

Views rendered with $this->template->view() already get it as $login_user.

Paged list queries in a model

When a list uses server side paging, MySQL still runs every sub query of the select for all matching rows before it returns one page. Your model can use get_list_result() (from Crud_model) instead. It finds the ids of the page first, then loads the full rows of those ids only.

return $this->get_list_result($select, $joins, $where, $order, $limit_offset, $select_joins);
ParameterWhat it holds
$selectThe select columns, without SELECT.
$joinsJoins used by the where and the order.
$whereConditions that start with AND. The deleted=0 check of the main table is added for you.
$orderThe ORDER BY part. Use real columns or expressions here, not select aliases.
$limit_offsetThe LIMIT part. Empty for a list without paging.
$select_joinsJoins used only by the select columns.

With paging it returns an array with data, recordsTotal and recordsFiltered. Without paging it returns the query result, like before.

Custom fields on kanban cards

To show custom fields on kanban cards, load them for all cards of a column at once:

$custom_fields_of_items = get_kanban_custom_fields_data("tasks", $items);
foreach ($items as $item) {
    $fields = $custom_fields_of_items[$item->id] ?? array();
}

Each field has custom_field_type, custom_field_title and value. Only fields with Show on kanban card are returned.

Was this article helpful? Yes No
How can we improve this article?
© 2026 Fairsketch
Home Get Support Buy Now

Delete?

Are you sure? You won't be able to undo this action!
To do