widget multiple section

This commit is contained in:
iBNu Maksum
2025-02-18 14:28:55 +07:00
parent 5b9cdd6681
commit 693d7f4acf
5 changed files with 62 additions and 26 deletions

View File

@ -105,6 +105,8 @@ if ($action == 'add') {
r2(getUrl('widgets'), 's', 'Widget order Saved Successfully');
} else {
$widgets = ORM::for_table('tbl_widgets')->selects("position", 1)->order_by_asc("orders")->find_many();
$max = ORM::for_table('tbl_widgets')->max('position');
$ui->assign('widgets', $widgets);
$ui->assign('max', $max);
$ui->display('admin/settings/widgets.tpl');
}