<div dir="ltr">Hey Alan,<div><br></div><div>Thanks for the info, Only it doesn't seem to work like i expected.</div><div>I enabled the Vtiger Logging in config.performance.php like this { 'LOG4PHP_DEBUG' => true, }</div><div><br></div><div>The vtigercrm.log has been created only i don't get any data in it after a invoice save.</div><div><br></div><div>My function to register the event is {</div><div><br></div><div><div> public function registerInvoiceEvent(){</div><div> if(Vtiger_Event::hasSupport()) {</div><div> Vtiger_Event::register(</div><div> 'Invoice', 'vtiger.entity.aftersave',</div><div> 'ReeleezeeHandler', 'modules/Reeleezee/ReeleezeeHandler.php'</div><div> );</div><div> }</div><div> }</div></div><div><br></div><div>}</div><div><br></div><div>Am i doing something wrong here ?</div><div><br></div><div>I thought it might have something to do with the Permissions on my server but it looks like these are okey.</div><div><br></div><div><br></div><div>Can anybody point me in the right direction.</div><div><br></div><div>Thanks in advance!!</div><div><br></div><div><br></div><div>Kind regards,</div><div><br></div><div>Lennart</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-09 10:22 GMT+01:00 Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 09/12/15 00:32, Lennart van Ballegoij wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
My Event Handler so far:<br>
<br>
<?php<br>
class ReeleezeeHandler extends VTEventHandler {<br>
function handleEvent($eventName, $data) {<br>
if($eventName == 'vtiger.entity.aftersave') {<br>
if ($data->isNew()) {<br>
// Create of new record<br>
print_r($data);<br>
} else {<br>
// Edit of older record<br>
}<br>
}<br>
}<br>
}<br>
?><br>
<br>
Can someone maybe give me push in the right direction?<br>
</blockquote>
<br></span>
enable vtiger logging, add global $log to your function then type something like:<br>
<br>
$log->debug(print_r($data,true));<br>
<br>
This will then be printed to the logs/vtigercrm.log file<br>
<br>
HTH<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>