Welcome Guest, Not a member yet? Register   Sign In
Table Library - Is this possible?
#1

[eluser]Kemik[/eluser]
Hello,

Using the table library and pagination I have generated a list of users on my site. Is it possible to add a column to the end of the results containing a link.

E.g.username | email | Edit

Username and email being in the result, edit being added to the end.

Thanks.
#2

[eluser]Kemik[/eluser]
Bump. If I cannot add a column I'll have to use a foreach to create each row. This way would have just been easier.
#3

[eluser]Colin Williams[/eluser]
I've always found table helpers/libraries to be overkill.
#4

[eluser]Derek Allard[/eluser]
using table->generate($result); no it isn't. But you can do
Code:
foreach ($result->result() as $row) {
  $this->table->add_row($row->item1, $row->item2, 'extra row goes here');
}
#5

[eluser]eedfwChris[/eluser]
[quote author="Colin Williams" date="1189165130"]I've always found table helpers/libraries to be overkill.[/quote]
Yea sometimes they have the same feel as scaffolding. Pretty neat if you are just trying to make something really quick but not necessarily for production use or anything all that advanced by all means.




Theme © iAndrew 2016 - Forum software by © MyBB