Hi. Since I'm new to all this stuff, I decided to go over the MRDBL tutorial, create the exact same form and then transform it into what I really need. The problem is it doesn't load anything at all. I have been able to load data from the same table through the single record loader, but the multi record one shows nothing. I followed the tutorial step by step. Has anything changed since the tutorial was made?
This is the custom code (just the same as in the tutorial but with my own data):
Any help will be appreciated.
This is the custom code (just the same as in the tutorial but with my own data):
<table>
<?php
foreach($form->data['FInsc'] as $detail]):
?>
<tr>
<td>Fecha de solicitud:<?php echo $detail['nif']; ?></td>
<td><a href="index.php?option=com_chronoforms&chronoform=form_aprobacion&token=<?php echo $detail['cf_uid'];?>">Editar</a></td>
</tr>
<?php
endforeach;
?>
</table>
Any help will be appreciated.
Hi dmontpe;
I just built my own version to read the articles list and that works OK. Looking at your code I think this line may be wrong (there's a stray ] near the end):
Bob
I just built my own version to read the articles list and that works OK. Looking at your code I think this line may be wrong (there's a stray ] near the end):
foreach($form->data['FInsc'] as $detail]):
Please tryforeach ( $form->data['FInsc'] as $detail ) :
Bob
Aargh!!! I hate it when that happens. A little tiny bracket or parenthesis that messes the whole thing up. Thank you for pointing it out for me, Greyhead. It works perfectly now.
This topic is locked and no more replies can be posted.