[eluser]introvert[/eluser]
Hello,
I have a controller function that should be called at multiple places (list_items) but I'm unsure if I should make a helper or library for it.
I should load a library within this function (table library) so I have a few concerns if this is possible with helpers since they're not separated objects to that I could call $this on them..
What should I do?
Heres some of the code:
Code:
//add rows to the table
$this->table->set_heading(array_keys($row));
$this->load->view('list', $data);
Is there any way to make it work like helper? Would it make sense?
Thanks for help!