Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin_portal
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
access
admin_portal
Commits
eb3605ba
Commit
eb3605ba
authored
Apr 10, 2019
by
Adarsh K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model change
parent
516098b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Handle_model.php
application/models/Handle_model.php
+3
-3
No files found.
application/models/Handle_model.php
View file @
eb3605ba
...
...
@@ -66,7 +66,7 @@ class Handle_model extends CI_Model {
}
function
categories
(
$data
)
{
if
(
$data
[
'cat_id'
]
)
{
if
(
isset
(
$data
[
'cat_id'
])
)
{
$this
->
db
->
where
(
'id'
,
$data
[
'cat_id'
]);
}
$data_rs
=
$this
->
db
->
select
(
'id,cat_name,cat_image'
)
->
where
(
'status'
,
1
)
->
get
(
'category'
);
...
...
@@ -84,10 +84,10 @@ class Handle_model extends CI_Model {
}
function
sub_categories
(
$data
)
{
if
(
$data
[
'cat_id'
]
)
{
if
(
isset
(
$data
[
'cat_id'
])
)
{
$this
->
db
->
where
(
'cat_id'
,
$data
[
'cat_id'
]);
}
if
(
$data
[
'id'
]
)
{
if
(
isset
(
$data
[
'id'
])
)
{
$this
->
db
->
where
(
'id'
,
$data
[
'id'
]);
}
$data_rs
=
$this
->
db
->
select
(
'id,sub_cat_name,sub_cat_image'
)
->
where
(
'status'
,
1
)
->
get
(
'sub_category'
);
...
...
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