I want to add a function to export the registrations data to excel by myself, so I tried to edit the method named registrations in pages/manager/RegistrationHandler.inc.php, I have several rows on the template, but when I var_dump the variable $registrations which assign_by_ref to templates I only got one DAOResultFactory which is the first row in the data, I don’t know how to loop the data correctly in PHP file
Hi @ChaN_Wu,
This is due to Smarty syntax – you’ll need to use @var_dump
, rather than var_dump
, or else the modifier will be applied to array elements rather than the array itself. See e.g. this thread.
Regards,
Alec Smecher
Public Knowledge Project Team