View that prints all the array $data['personas'] in a table html. |
(04-20-2017, 08:10 PM)JayAdra Wrote: You can use the array_keys function to get the keys of the first item (if they all have the same keys?) and loop through them to create the header row. Hello Jay. Thanks for your answer. 1) Referent to array_keys I tried this in the View: Code: <div class="page-header"> And it prints the first level of keys: I don't know how descend levels of sub Arrays... Do you know how? 2) Referent to simply loop through the data array and print the data. I don't know how print a sub Array without the name of the Fields. I only know like here: Code: <Table border="1"> I tried this but not rules: Code: <Table border="1"> Thanks a lot... |
Welcome Guest, Not a member yet? Register Sign In |