AnsweredAssumed Answered

My logic_hooks.php file not running  !!! :( :(

Question asked by Amel Itachi on May 13, 2015
Latest reply on May 13, 2015 by Mohit Garg
Hello,

I have a problem with my logic_hooks files, I don't understand why but here is the files.
If someone can help me please, I'm novice, and I'm desperate.

logic_hooks.php :

<?php

$hook_version=1;
$hook_array= Array();

$hook_array['after_save'] = Array();
$hook_array['after_save'][]=Array(1,'Evenement Actif','custom/modules/Contacts/hook.php','Evenement','evenementActif');

?>


hook.php :

<?php
if (!defined('sugarEntry') || !sugarEntry)
    die('Not A Valid Entry Point');

class Evenement
{
    public function evenementActif(&$bean,$event,$arguments)
    {
        $GLOBALS['log']->fatal("test");
    }
}

?>

thanks for ur help,

Amel.

Outcomes