Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simas-blitar
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Deddy Vita Kurniawan
simas-blitar
Commits
0463c2fa
Commit
0463c2fa
authored
May 06, 2024
by
Deddy Vita Kurniawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* revisi menu
parent
e0ba928e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
menu_model.php
application/modules/menu/models/menu_model.php
+4
-3
No files found.
application/modules/menu/models/menu_model.php
View file @
0463c2fa
...
...
@@ -63,11 +63,12 @@ class Menu_model extends Base_Model {
$oldid
=
''
;
/* hapus dulu menu yang ada */
$this
->
db
->
where
(
'a
.a
ppid'
,
$this
->
app_id
);
$this
->
db
->
delete
(
'menu
a
'
);
$this
->
db
->
where
(
'appid'
,
$this
->
app_id
);
$this
->
db
->
delete
(
'menu'
);
$cache
=
array
();
/* simpan semua menu */
//die(print_r($this->data));
foreach
(
$this
->
data
as
$menu
)
{
/* cek dalam cache apakah parent_id perlu di update */
...
...
@@ -94,7 +95,7 @@ class Menu_model extends Base_Model {
/* simpan id kedalam cache */
if
(
$isnew
!==
false
)
{
$result
=
$this
->
db
->
select
(
'max(
id) id
'
)
->
get
(
'menu'
)
->
row_array
();
$result
=
$this
->
db
->
select
(
'max(
ID) ID
'
)
->
get
(
'menu'
)
->
row_array
();
$cache
[]
=
array
(
'old'
=>
$oldid
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment