[Vtigercrm-developers] How to get data from Invoices module from within my module
Alan Lord
alanslists at gmail.com
Wed Dec 9 09:22:20 GMT 2015
On 09/12/15 00:32, Lennart van Ballegoij wrote:
>
> My Event Handler so far:
>
> <?php
> class ReeleezeeHandler extends VTEventHandler {
> function handleEvent($eventName, $data) {
> if($eventName == 'vtiger.entity.aftersave') {
> if ($data->isNew()) {
> // Create of new record
> print_r($data);
> } else {
> // Edit of older record
> }
> }
> }
> }
> ?>
>
> Can someone maybe give me push in the right direction?
enable vtiger logging, add global $log to your function then type
something like:
$log->debug(print_r($data,true));
This will then be printed to the logs/vtigercrm.log file
HTH
Al
More information about the vtigercrm-developers
mailing list