table_before_insert

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
mqley
Veteran Member
Posts: 70
Joined: 2020-07-19 13:25
Contact:

table_before_insert

Post by mqley » 2020-07-19 16:58

Hello. How would I print the results out to screen from function research_before_insert(&$data, $memberInfo, &$args) - to see what variables are in play in $data.?

Thanks
Best Wishes,

Mark

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: table_before_insert

Post by jsetzer » 2020-07-19 17:10

Hi,

here are two alternatives which I am using quite often:


(1) Alternative 1

Code: Select all

echo '<pre>';
var_dump($data);
echo '</pre>';
exit();
chrome_FXFspMoEFE.png
chrome_FXFspMoEFE.png (4.97 KiB) Viewed 995 times


(2) Alternative 2

Code: Select all

echo '<pre>';
print_r($data);
echo '</pre>';
exit();
Less information but probably easier to read

chrome_QgPq2jgFLf.png
chrome_QgPq2jgFLf.png (2.8 KiB) Viewed 995 times


Regards,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply