Welcome Guest, Not a member yet? Register   Sign In
View that prints all the array $data['personas'] in a table html.
#8

(05-02-2017, 04:01 AM)InsiteFX Wrote: You can also use this, it will pull the column names from the table:

CodeIgniter User Guide - HTML Table Class

Thanks for your answer InsiteFx.

But i don't know how de html Table Class can helps me...

I need to know how print the content of the array with the index $i, $j, something like this:

Code:
            <tbody>
                <?php foreach($personas[5] as $p){ //loop through array of persons ?>
                    <tr>
                        <?php foreach($p[6] as $key => $value) { //loop through each property of the object ?>
                            <td><?php echo $value; ?></td>
                        <?php } //end foreach ?>
                    </tr>
                <?php } //end foreach ?>
            </tbody>
Reply


Messages In This Thread
RE: View that prints all the array $data['personas'] in a table html. - by Angel_Debat - 05-02-2017, 06:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB