[eluser]kulldox[/eluser]
#überfuzz, what do you mean "...do you really have to make the array like that, if you just gonna alter it?".
The array is:
Code:
array(3) {
[0]=>
array(9) {
["id"]=>
string(1) "6"
["title"]=>
string(4) "home"
["content"]=>
string(3318) "Lorem ipsum dolo..."
["slug"]=>
string(4) "home"
["status"]=>
string(1) "1"
["created"]=>
string(19) "0000-00-00 00:00:00"
["author"]=>
string(1) "1"
["updated"]=>
string(19) "0000-00-00 00:00:00"
["updater"]=>
string(1) "0"
}
[1]=>
array(9) {
["id"]=>
string(1) "8"
["title"]=>
string(4) "Test"
["content"]=>
string(16) "Just a test page"
["slug"]=>
string(4) "test"
["status"]=>
string(1) "1"
["created"]=>
string(19) "0000-00-00 00:00:00"
["author"]=>
string(1) "1"
["updated"]=>
string(19) "0000-00-00 00:00:00"
["updater"]=>
string(1) "0"
}
[2]=>
array(9) {
["id"]=>
string(1) "9"
["title"]=>
string(5) "test2"
["content"]=>
string(1308) "<img width="80" height="80" alt="" src="/assets/image/avatar.jpeg" />asdfsdf
"
["slug"]=>
string(5) "test2"
["status"]=>
string(1) "1"
["created"]=>
string(19) "0000-00-00 00:00:00"
["author"]=>
string(1) "1"
["updated"]=>
string(19) "2009-08-29 09:05:02"
["updater"]=>
string(1) "6"
}
}
and is redered in the controller for now, but will move it to the view later as I think it should belong to it.
But that's not important.
In my opinion the $this->table->add_row() method should have the ability to pass additional parameter to the <tr> tag, like css, javascript or other stuff like that.
I'll see, or all extend the Table Helper or I'll use raw html for this.