I am new to Zend Framework and not sure if this is possible.
I want to use partialloop to create a table with form fields.
I use this code in a view:
<table cellpadding='0' cellspacing='0'> <tr> <th>Cliente</th> <th>Descripcion</th> </tr> <?php echo $this->partialLoop('partials/_solicitud-row.phtml', $this->form); ?> </table>
And in partial, I tried this:
<tr> <td><?php echo $this->key . "=" . $this->value; ?></td> </tr>
And this one
<tr> <td><?php echo $this->Descripcion; ?></td> <td><?php echo $this->cliente; ?></td> <td><?php echo $this->FechaHoraCreada; ?></td> <td><?php echo $this->Monto; ?></td> </tr>
Using this, I get the table headers ( <tr><th>Cliente</th><th>Descripcion</th></tr> ), but nothing more. I know that partial processing is being processed because the first partial numbers equal to "=" are listed.
Does it make sense what I'm doing? Is there a way to access form elements? I tried other options like $ this-> getElement .. but didn't work
Thanks!
source share