Welcome Guest, Not a member yet? Register   Sign In
MY_Table.php
#4

[eluser]PhilTem[/eluser]
Coolio, made the same code into my project.

Nonetheless, I found one thing that is wrong in your code: A table footer has tr-td blocks and not tr-th. th is only for table-head. Therefore, if you want to have proper HTML code generation of tables, you should change the default template to

Code:
$template = array (
    'footer_row_start'   => '<tr>',
    'footer_row_end'     => '</tr>',
    'footer_cell_start'  => '<td>',
    'footer_cell_end'    => '</td>'
)

However, I like that you put the table-footer directly after the table-header and not at the end of the table Wink


Messages In This Thread
MY_Table.php - by El Forum - 08-14-2012, 11:01 AM
MY_Table.php - by El Forum - 08-14-2012, 11:39 AM
MY_Table.php - by El Forum - 08-14-2012, 12:43 PM
MY_Table.php - by El Forum - 08-14-2012, 05:21 PM
MY_Table.php - by El Forum - 08-23-2012, 01:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB