how can I load two smileys table in one function...?[solved]

#1
[eluser]reka[/eluser]
when I load the Library Smiles in a one function, on the views option, the second smileys come into the first smiley
here my function...
Code:
function news($key = NULL){




        $image_array = get_clickable_smileys(base_url().'includes/images/emoticons', 'comment');
        
        $col_array = $this->table->make_columns($image_array, 4);
        
        $data['smiley_table'] = $this->table->generate($col_array);




        $image_array2 = get_clickable_smileys(base_url().'includes/images/emoticons', 'pesan');
        
        $col_array2 = $this->table->make_columns($image_array2, 4);
        
        $data['smiley_table2'] = $this->table->generate($col_array2);
        


    $this->load->view('public_home', $data);
    

    }

#2
[eluser]InsiteFX[/eluser]
You need to clear the table data before creating the second column!

Code:
$this->table->clear()

InsiteFX

#3
[eluser]reka[/eluser]
great..!
work like a charm...
I just noticed, it said in user guide...
Next time I would have more carefully read the user guide ...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.