Welcome Guest, Not a member yet? Register   Sign In
helper or library?
#1

[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!


Messages In This Thread
helper or library? - by El Forum - 09-28-2009, 03:53 PM
helper or library? - by El Forum - 09-28-2009, 05:50 PM
helper or library? - by El Forum - 09-28-2009, 06:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB