AnsweredAssumed Answered

Unable to load custom logic class

Question asked by sidhu sidhu on Dec 7, 2016
Latest reply on Dec 7, 2016 by sidhu sidhu

Hi All 

 

           I am getting this error-Unable to load custom logic class in log file the description field is not updating in my logichook. Tevfik Tümer David López Mehul  Bhandari

 

I need to fix it urgently can any one please help me version 7.7

 

custom/Extension/moudules/<mycustommodule>/Ext/LogicHooks/logic_hooks.php file

 

<?php
$hook_version = 1;

$hook_array['before_save'][] = array(
1, //Integer
'SLT', //String
'custom/modules/<mymodule>/readynum.php', //String or null if using namespaces
'Cnumhook', //String
'cnumber', //String
);


?>

 

 

custom/modules/<mycustommodule>/readynum.php

 

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

class Cnumhook {

 

function cnumber($bean, $event, $arguments){

$bean->description="help the helpers";

 

 

 

}
}
?>

 

 

 

Regards

Sidhu

Outcomes