Welcome Guest, Not a member yet? Register   Sign In
can some one show how to get link cate folow id cate in codeigniter 4
#1

(This post was last modified: 03-11-2022, 01:05 AM by startup.)

i have one array below;
PHP Code:
Array
(
    [items] => Array
        (
        
            
[0] => stdClass Object
                
(
                    [id] => 1
                    
[name] => demo 01
                    
[view] => 1
                    
[link] => demo-01
                    
[category_id] => 434
                
)

            [1] => stdClass Object
                
(
                    [id] => 2
                    
[name] => demo 02
                    
[view] => 1
                    
[link] => demo-02
                    
[category_id] => 434
                
)

            [2] => stdClass Object
                
(
                    [id] => 3
                    
[name] => demo 03
                    
[view] => 1
                    
[link] => demo-03
                    
[category_id] => 432
                
)

          

        
)

    [parents] => Array
        (
            [434] => Array
                (
                    [0] => 434
                    
[1] => 434 
                
)

            [432] => Array
                (
                    [0] => 432
                
)

        )



i've solved final project, thank you 4 rum
Reply
#2

Possible to show your controller, how you are passing to the view, and how you are trying to present the data?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB