forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 0
TableTemplates
Derek Jones edited this page Jul 5, 2012
·
8 revisions
Category:Help | Category:Help::TipsAndTricks | Category:Help::Templates
Code Igniter supports use of multidimensional arrays as parameters to a table template.
<table class="tbl" >
<thead>
<tr>
{fields}
<th class='tbl_headercell'>{lbl}</th>
{/fields}
</tr>
</thead>
<tbody class="scrollingContent">
{rows}
<tr>
{cols}
<td align="{align}">{value}</td>
{/cols}
</tr>
{/rows}
</tbody>
</table>